[Haskell-cafe] Simple but interesting (for me) problem

michael rice nowgate at yahoo.com
Wed Oct 21 13:34:47 EDT 2009


There's a thread on the plt-scheme list about creating a function of NO arguments named NEXT that just returns the number of times it's been called, a piece of cake in Scheme, but how would one do this in Haskell? Would the best approach be to use a State monad?

Michael


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20091021/e6cada9f/attachment.html


More information about the Haskell-Cafe mailing list