>      ([: f/"1 [: ; [: (,. i.)&.>  1 + i.) 5
> 1 2 3 3 4 7 4 5 8 13 5 6 9 14 21
>
A (faster) compact variant

    ([:;(f"_1 i.)&.> )1+i.5
1 2 3 3 4 7 4 5 8 13 5 6 9 14 21

-- 
Met vriendelijke groet,
=@@i

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to