just happened upon a Guy Steele talk from 2011 about parallelism and hist Fortress language, with a comment by Torsten Grust ; it's a small internet :)
I half remember asking here a while ago, about a way to group things into N pieces in APL; abcdefghi to abc def ghi and that there was a surprisingly simple answer, like an N-wise reduce
@J.Sallé Interestingly, TorstenGrust's screenshot looks quite different from what I see in FFQ/Edge/Chrome on Windows — they all render more or less identically. Edge has slight alignment problems for the × and the contrast, but that's it. Torsten is seeing large distance from X, Y, X down to the results, an then of course the cramped query.
APL (Dyalog Extended), 5 bytesSBCS
2¨≡⍧⍨
Try it online!
Is it true that…
2¨ two for each element
≡ is identical to
⍧⍨ the count-in selfie (count of own elements in self)
?
@dzaima Also monadic ∩. I couldn't decide which monadic function to make that, nub-sieve or self-classify, so I added both. Nub-sieve inspired me to count-in, and they fit well together, so they got ⍧. The fact that it looks like an overlaid C and I is just happy coincidence. I anyway wanted a shoe-y symbol, and didn't need a pair (there is no ⊃| combo.)
@TorstenGrust It can pass. On other devices (browsers?), there is a quite sizeable gap now. Also APLcart and query appear vertically misaligned, and there's too much distance from X,Y,Z down to the results. Hm. I'll have to investigate one day, but I guess it is "good enough" for now.
My FFQ/W10 inspector says both __APLcart __ and query have the same line height and position within the container. Might only be happening in Safari, though