Tuesday, February 10, 2009

Nested Where's

I've been discussing with someone how I thought this type of code required a nested where. This code compiled and ran fine for me. I guess it's ok!

foo = foldl step 0
where
step = f
f acc x = acc + x

No comments: