Symbol Iota: Difference between revisions
From NARS2000
Jump to navigationJump to search
(new) |
(added ⎕IO quad IO) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
<h1> {iota} — | <h1> {iota} — iota or index; Keystroke ALT+i ; Character (⎕UCS) 9075</h1> | ||
==Usage== | ==Usage== | ||
Monadic use: | |||
* [[Index Generator]]: <apll>⍳R</apll> | |||
Dyadic use: | |||
* [[Index Of]]: <apll>L⍳R</apll> | |||
==Examples== | |||
<pre> | |||
⍳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' | |||
</pre> | |||
==See Also== | |||
* [[Index Generator]]: <apll>⍳R</apll> | |||
* [[Index Of]]: <apll>L⍳R</apll> | |||
* [[System_Variable_IO]] <apll>⎕IO</apll> or quad IO, Index Origin | |||
* [[Array Lookup]]: <apll>L⍸R</apll> | |||
* [[Indexing]]: <apll>R[L]</apll>, <apll>R[L]←A</apll>, <apll>R[L]<i>f</i>←A</apll>, <apll>L⌷R</apll>, <apll>L⍉R</apll>, <apll>L⊃R</apll> | |||
* [[Indices]]: <apll>⍸R</apll> | |||
{{Language Toolbar}} | {{Language Toolbar}} | ||
[[Category:Mouse Group 7|I]] | |||
[[Category:Symbols|I]] |
Latest revision as of 14:47, 8 February 2016
⍳ — iota or index; Keystroke ALT+i ; Character (⎕UCS) 9075
Usage
Monadic use:
- Index Generator: ⍳R
Dyadic use:
- Index Of: L⍳R
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
- Index Generator: ⍳R
- Index Of: L⍳R
- System_Variable_IO ⎕IO or quad IO, Index Origin
- Array Lookup: L⍸R
- Indexing: R[L], R[L]←A, R[L]f←A, L⌷R, L⍉R, L⊃R
- Indices: ⍸R
NARS 2000 Lang Tool Bar |
← | → | + | - | × | ÷ | * | ⍟ | ⌹ | ○ | ! | ? | √ | | | ⌈ | ⌊ | ⊥ | ⊤ | ⊣ | ⊢ | |||
≡ | ≢ | < | ≤ | = | ≥ | > | ≠ | ∨ | ∧ | ⍱ | ⍲ | ↑ | ↓ | ⊂ | ⊃ | ⌷ | ⍋ | ⍒ | |||||
⍳ | ∊ | ⍸ | ⍷ | ∪ | ∩ | ⊆ | ⊇ | ~ | § | π | .. | , | ⍪ | ⍴ | ⌽ | ⊖ | ⍉ | ||||||
/ | \ | ⌿ | ⍀ | ⊙ | ¨ | ⍨ | ⍤ | ⍣ | ⍡ | ⍥ | ⍦ | . | ∘ | ⍠ | ‼ | ⌻ | ∂ | ∫ | ⍞ | ⎕ | ⍎ | ⍕ | |
⋄ | ⍝ | ∇ | ∆ | ⍙ | _ | ⍺ | ⍵ | ¯ | ⍬ | ∞ | ∅ | ||||||||||||
Second Row | i j k | i j k l | g | p | r | v | x |