On Thu, Feb 27, 2014 at 8:54 AM, Pascal Jasmin wrote:
> with sparse arrays though, it does something weird and not obviously
> necessary:
>
>lr $. 0 0 3 0 5
> 3 5 (2 4)}1$.(,5);(,0);0+-~2
>
>lr 10 + $. 0 0 3 0 5 0
> 13 15 (2 4)}1$.(,6);(,0);10+-~2
>
> The weird part is the little piece at
lr =: 3 : '5!:5 <''y'''
lr is pretty cool:
lr 1 10 $ +: 5 * i:10
_100+10*i.1 10
with sparse arrays though, it does something weird and not obviously necessary:
lr $. 0 0 3 0 5
3 5 (2 4)}1$.(,5);(,0);0+-~2
lr 10 + $. 0 0 3 0 5 0
13 15 (2 4)}1$.(,6);(,0);10+-~2
The weird part is the