4 ms·
NARS2000, Dyalog APL, and dzaima/APL all have the Where function now. See https://aplwiki.com/wiki/Indices https://aplwiki.com/wiki/Indices.
by mlochbaum 7y ago
NARS2000, Dyalog APL, and dzaima/APL all have the Where function now. See https://aplwiki.com/wiki/Indices https://aplwiki.com/wiki/Indices.
- beagle3 7y agoThanks! Should probably brush up on my APL, as I have last really used APL2 on a mainframe nearly 3 decades ago. But I have gotten lazy and too comfortable with K.... oh well.
- miltondts 7y agoI'm not familiar with J but it also appears to have something similar. However the resulting code seems a bit more convoluted than the K version. +/ (I. a>3) { a
- TheRealDevonMcC 7y agoMore idiomatic J might look like this: +/a#~a>3 .