4,494
edits
(add ↑ from Sharp) |
m (Text replacement - " ⊢( *[^∘])" to " ⎕←$1") |
||
(One intermediate revision by one other user not shown) | |||
Line 17: | Line 17: | ||
In some languages, such as [[J]] and [[Dyalog APL 17.0]] and later, Unique applies to the [[major cells]] of an array, including those with rank greater than 1: | In some languages, such as [[J]] and [[Dyalog APL 17.0]] and later, Unique applies to the [[major cells]] of an array, including those with rank greater than 1: | ||
<source lang=apl> | <source lang=apl> | ||
⎕←x ← (⍳10)∘.∨2 3 6 | |||
1 1 1 | 1 1 1 | ||
2 1 2 | 2 1 2 | ||
Line 49: | Line 49: | ||
⎕CT←1e¯14 | ⎕CT←1e¯14 | ||
⎕PP←18 ⍝ Print all digits | ⎕PP←18 ⍝ Print all digits | ||
⎕←x←1+⎕CT×0 0.6 1.2 | |||
1 1.000000000000006 1.000000000000012 | 1 1.000000000000006 1.000000000000012 | ||
⍳⍨x ⍝ Each element equal to the previous | ⍳⍨x ⍝ Each element equal to the previous | ||
Line 111: | Line 111: | ||
== References == | == References == | ||
<references /> | <references /> | ||
{{APL built-ins}}[[Category:Primitive functions]] | {{APL built-ins}}[[Category:Primitive functions]][[Category:Set functions]] |