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


      
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to