global variable

Jose Morais <[email protected]>
Newsgroups gmane.comp.lang.haskell.hugs.user
Message-ID <[email protected]>
Hello,

	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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.