global variable

Jose Morais jjoao at
Sun Oct 12 18:44:54 EDT 2003


	I need a function called, say, newItem :: Int, 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 Hugs-Users mailing list