
2 Oct
2011
2 Oct
'11
3:17 a.m.
Ozgur Akgun wrote:
On 1 October 2011 11:55, Yves Parès
wrote: BTW Heinrich, the
evalState (sequence . repeat . State $ \s -> (s,s+1)) 0
at the end doesn't work anymore. It should be replaced by : evalState (sequence . repeat . StateT $ \s -> Identity (s,s+1)) 0
Or equivalently:
evalState (sequence . repeat . state $ \s -> (s,s+1)) 0
Thanks, I've changed it. Best regards, Heinrich Apfelmus -- http://apfelmus.nfshost.com