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} &mdash; (Replace this with Meaning of symbol) &mdash; Keystroke ?ALT+X &mdash; Character 0000</h1>
<h1> {iota} &mdash; iota or index; Keystroke ALT+i ; Character (⎕UCS) 9075</h1>
==Usage==
==Usage==
==Example==
==See Also==


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>, &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>


{{Language Toolbar}}
{{Language Toolbar}}
[[Category:Mouse Group 7|I]]
[[Category:Symbols|I]]

Latest revision as of 15:47, 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

{{#ifeq:{{{en}}}|4||title="match" style="border-width:thick; border-color:blue; background-color:yellow;"| {{#ifeq:{{{en}}}|7||title="iota" style="border-width:thick; border-color:blue; background-color:yellow;" | {{#ifeq:{{{en}}}|9||title="slash" style="border-width:thick; border-color:blue; background-color:yellow;" |/ {{#ifeq:{{{en}}}|11||title="diamond" style="border-width:thick; border-color:blue; background-color:yellow;" | {{#switch: {{{en}}}
NARS 2000 Lang
Tool
Bar

{{#ifeq:{{{en}}}|1||title="assign" style="border-width:thick; border-color:blue; background-color:yellow;" |

bgcolor=cyan title="assign" | }}

{{#ifeq:{{{en}}}|2||title="plus" style="border-width:thick; border-color:blue; background-color:yellow;" |+

- × ÷ * ! ? bgcolor=cyan title="plus" |+ - × ÷ * ! ? }}

{{#ifeq:{{{en}}}|3||title="mod" style="border-width:thick; border-color:blue; background-color:yellow;" ||

< = > bgcolor=cyan title="match" | < = > }}

{{#ifeq:{{{en}}}|5||title="down caret" style="border-width:thick; border-color:blue; background-color:yellow;" |

bgcolor=cyan title="down caret" | }}

{{#ifeq:{{{en}}}|6||title="take" style="border-width:thick; border-color:blue; background-color:yellow;" |

~ § π .. bgcolor=cyan title="iota" | ~ § π .. }}

{{#ifeq:{{{en}}}|8||title="comma" style="border-width:thick; border-color:blue; background-color:yellow;" |,

\ ¨ . bgcolor=cyan title="slash" |/ \ ¨ . }}

{{#ifeq:{{{en}}}|10||title="quotequad" style="border-width:thick; border-color:blue; background-color:yellow;" |

_ bgcolor=cyan title="diamond" | _ }}

{{#ifeq:{{{en}}}|12||title="neg" style="border-width:thick; border-color:blue; background-color:yellow;" |¯

title="neg" |¯
colspan=8 |Second Row i j k a b e g p r v x z colspan=8 |Second Row i j k a b e g p r v x z colspan=8 |Second Row i j k a b e g p r v x z colspan=6 |Second Row i j k i j k l g p r v x

}}