And to the chat

> So are you saying that Haskell's fold would not be suitable for
> something like this:
>
> M=: 20$'.'
> foldr=:1 :0
> :
>   X=.<x
>   Y=.y<@["u x
>   >u&.>/Y,X
> )
>
>    M 4 :'''*'' x} y' foldr 2 3 5 7 11 13 17 19
> ..**.*.*...*.*...*.*
>
> ?
>
No, e.g.

Prelude> foldl (\xs  y -> (\(k,t) -> k ++ ('*':drop 1 t) ) $ splitAt y xs) 
"..............."  [2,5,7]
"..*..*.*......."



-- 
Met vriendelijke groet,
=@@i

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

Reply via email to