A Programming Language: Difference between revisions
Jump to navigation
Jump to search
→Notation
Miraheze>Marshall (Created page with "''A Programming Language'' is a book published in 1962 by Kenneth E. Iverson to describe one iteration of his Iverson notation. The book's title later was used to form...") |
Miraheze>Marshall |
||
Line 19: | Line 19: | ||
* [[Iota]] is called "Interval" and uses the letter <code>⍳</code> with an optional [[index origin]] subscript. | * [[Iota]] is called "Interval" and uses the letter <code>⍳</code> with an optional [[index origin]] subscript. | ||
* [[Index-Of]] is also written with <code>⍳</code> and an [[index origin]] subscript. It is defined on vector left arguments and vector or scalar right arguments. | * [[Index-Of]] is also written with <code>⍳</code> and an [[index origin]] subscript. It is defined on vector left arguments and vector or scalar right arguments. | ||
* [[Membership]] is <code>∊</code> as in APL. | |||
* [[Reduction]] (<code>/</code>, or <code>//</code> instead of <code>⌿</code>) starts from the left rather than the right. For reductions of [[empty]] arrays, the [[identity element]] is returned. | * [[Reduction]] (<code>/</code>, or <code>//</code> instead of <code>⌿</code>) starts from the left rather than the right. For reductions of [[empty]] arrays, the [[identity element]] is returned. | ||
* [[Rotate]] is written with arrows: <code>↑</code> for left rotation and <code>↓</code> for right rotation. | * [[Rotate]] is written with arrows: <code>↑</code> for left rotation and <code>↓</code> for right rotation. |