4 ms·
I had thought APL style was to specify initial values simply by pre-catenating the desired initial value onto the argument?
by 082349872349872 3y ago
I had thought APL style was to specify initial values simply by pre-catenating the desired initial value onto the argument?
- moonchild 3y agothat doesn't work when the desired initial value is not the same shape as the major cells of the argument array
- mlochbaum 3y agoNo, as you can check with some of the weirder arithmetic functions: </ ⍬ ⍝ Empty list 0 </ ,5 5 </ 0 5 1 </ 5 0 0 It would be more consistent in some ways though (for example forcing </ to always have a boolean result). APL designer Bob Smith's advocated for it, particularly for ,/ to make it behave better as a joining function: http://www.sudleyplace.com/APL/Reduction%20Of%20Singletons.pdf http://www.sudleyplace.com/APL/Reduction%20Of%20Singletons.p...