Symbol Iota: Difference between revisions

From NARS2000
Jump to navigationJump to search
(expanded)
mNo edit summary
Line 21: Line 21:
* [[Index Generator]]:  <apll>⍳R</apll>
* [[Index Generator]]:  <apll>⍳R</apll>
* [[Index Of]]:  <apll>L⍳R</apll>
* [[Index Of]]:  <apll>L⍳R</apll>
* [[Array Lookup]]:  <apll>L⍸R</apll>
* [[Array Lookup]]:  <apll>L⍸R</apll>
* [[Find]]:  <apll>L⍷R</apll>
* [[Indexing]]:  <apll>R[L]</apll>, &nbsp;&nbsp;<apll>R[L]←A</apll>, &nbsp;&nbsp;<apll>R[L]<i>f</i>←A</apll>, &nbsp;&nbsp;<apll>L⌷R</apll>, &nbsp;&nbsp;<apll>L⍉R</apll>, &nbsp;&nbsp; <apll>L⊃R</apll>
* [[Indexing]]:  <apll>R[L]</apll>, &nbsp;&nbsp;<apll>R[L]←A</apll>, &nbsp;&nbsp;<apll>R[L]<i>f</i>←A</apll>, &nbsp;&nbsp;<apll>L⌷R</apll>, &nbsp;&nbsp;<apll>L⍉R</apll>, &nbsp;&nbsp; <apll>L⊃R</apll>
* [[Indices]]:  <apll>⍸R</apll>
* [[Indices]]:  <apll>⍸R</apll>

Revision as of 13:28, 8 February 2016

⍳ — iota or index; Keystroke ALT+i ; Character (⎕UCS) 9075

Usage

Monadic use:

Dyadic use:

Examples

      ⍳20     ⍝ Monadic example, generate the set of integers 1 through 20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

      'ABCDEFG' ⍳ 'BG'    ⍝ Dyadic example, find/lookup the letters B and G in the string 'ABCDEFG' (pos 1 = A, pos 2 = B, ... pos 7 = G)
2 7                                 ⍝ Results found at positions 2 and 7 of string 'ABCDEFG'

See Also

NARS 2000 Lang
Tool
Bar
+ - × ÷ * ! ? |
< = >
~ § π .. ,
/ \ ¨ .
_ ¯
Second Row i j k i j k l g p r v x