Nub Sieve: Difference between revisions

Jump to navigation Jump to search
281 bytes added ,  14:35, 14 July 2020
m
Text replacement - "http://help.dyalog.com" to "https://help.dyalog.com"
m (4 revisions imported: Migrate from miraheze)
m (Text replacement - "http://help.dyalog.com" to "https://help.dyalog.com")
(7 intermediate revisions by 3 users not shown)
Line 20: Line 20:
Nub Sieve can be used to filter a [[matrix]] by some of its columns, or find its unique rows.
Nub Sieve can be used to filter a [[matrix]] by some of its columns, or find its unique rows.
<source lang=apl>
<source lang=apl>
       a ← (⍳6) ∘.! 3+⍳3
       ⎕← a ← (⍳6) ∘.! 3+⍳3
4  5  6
4  5  6
6 10 15
6 10 15
Line 87: Line 87:
== History ==
== History ==


Nub Sieve is present in [[SHARP APL]] and [[A Dictionary of APL]] as <source lang=apl inline>≠</source> or Nubsieve and [https://code.jsoftware.com/wiki/Vocabulary/tildeco in J] as <source lang=j inline>~:</source> or Nub Sieve.
:''See also [[Unique#History]].''
 
Nubsieve (<source lang=apl inline>≠</source>) first appeared in [[A Dictionary of APL]] in 1987, and was eventually added to [[SHARP APL]]. It appears [https://code.jsoftware.com/wiki/Vocabulary/tildeco in J] as <source lang=j inline>~:</source> or Nub Sieve. It is also included in [[Dyalog APL 18.0]], released June 2020.


== External links ==
== External links ==
Line 93: Line 95:
=== Documentation ===
=== Documentation ===


* [https://help.dyalog.com/18.0/#Language/Primitive%20Functions/Unique%20Mask.htm Dyalog]
* J [https://www.jsoftware.com/help/dictionary/d222.htm Dictionary], [https://code.jsoftware.com/wiki/Vocabulary/tildeco NuVoc] (as <source lang=j inline>~:</source>)
* J [https://www.jsoftware.com/help/dictionary/d222.htm Dictionary], [https://code.jsoftware.com/wiki/Vocabulary/tildeco NuVoc] (as <source lang=j inline>~:</source>)


{{APL built-ins}}
{{APL built-ins}}[[Category:Primitive functions]][[Category:Set functions]]

Navigation menu