War on Raze
4 days ago
- #array languages
- #k7 programming
- #prime numbers
- The k7 prime number filter uses 'except' (^) with rank-sensitivity, eliminating the need for raze in later versions.
- Earlier versions required raze (,/) to flatten nested results from each-right multiplication, which was seen as a workaround.
- Deep where, inspired by Dyalog APL, offers a way to generate pairs without raze, using an exploded dict representation of data.
- An 'explode' verb transforms nested data into a flat key-value structure, enabling shallow verbs to mimic deep ones.
- The implementation allows for razeless, index-free prime generation, though it may be less efficient than the original.
- Deep verbs like deep find and deep group can be defined using the exploded form, potentially unifying shallow and deep operations.