global variable

Jose Morais jjoao at
Sun Oct 12 21:20:31 EDT 2003


	I need a function called, say, newItem, that when first called
returns 1, the next time it is called it would return 2, then 3 and so
on. How can I achieve this?

	Thank you

More information about the Haskell-Cafe mailing list