Talk:Nub Sieve: Difference between revisions

From APL Wiki
Jump to navigation Jump to search
(Question re: “pre-correction of bad meme (⍳≢⍵)=⍵⍳⍵”)
Tags: Mobile edit Mobile web edit
 
mNo edit summary
Line 4: Line 4:


Also, a related question about the <syntaxhighlight lang=apl inline>1/⊢</syntaxhighlight>‬ part: why make a scalar probe into a vector before searching in the Unique/Nub? I see that doing the search without increasing the probe to rank 1, as in <syntaxhighlight lang=apl inline>(∪⍳⊢)'A'</syntaxhighlight>‬, does not give an error…
Also, a related question about the <syntaxhighlight lang=apl inline>1/⊢</syntaxhighlight>‬ part: why make a scalar probe into a vector before searching in the Unique/Nub? I see that doing the search without increasing the probe to rank 1, as in <syntaxhighlight lang=apl inline>(∪⍳⊢)'A'</syntaxhighlight>‬, does not give an error…
:Nub-sieve used to be computed like that, but it was a mistake. (∪⍳⊢)'A' would give a scalar, which then errors in ⍳⍨ [[Adám Brudzewsky]] 14:54, 29 June 2023 (UTC)

Revision as of 14:54, 29 June 2023

Question: what’s meant by “pre-correction of bad meme” here?

(⍳⍤≢=⍳⍨)⍤(∪⍳1/⊢) ⍝ Pre-correction of bad meme (⍳≢⍵)=⍵⍳⍵

Also, a related question about the 1/⊢‬ part: why make a scalar probe into a vector before searching in the Unique/Nub? I see that doing the search without increasing the probe to rank 1, as in (∪⍳⊢)'A'‬, does not give an error…

Nub-sieve used to be computed like that, but it was a mistake. (∪⍳⊢)'A' would give a scalar, which then errors in ⍳⍨ Adám Brudzewsky 14:54, 29 June 2023 (UTC)