On Wed, Jul 29, 2009 at 12:04 PM, CK Kashyap <ck_kashyap@yahoo.com> wrote:
It worked like a charm!!! I'd need more time to get my head around "unfoldr"
I'd appreciate it very much if you could explain this line  "map maySwitch . unfoldr go $ (x1,y1,0)"
I did not fully understand the "$" in that line - I tried putting parenthesis in various places to get rid of "$" but did not seem to work.

(map maySwitch . unfoldr go) (x1,y1,0)

should work.

Cheers,

Johan