[Haskell-cafe] How to hold common data
scott west
swest3 at cogeco.ca
Wed May 12 17:58:05 EDT 2004
MR K P SCHUPKE wrote:
>simplest way... use a recursive function that feeds itself the
>state as one of its arguments...
>
>
>
>
Mmm, yes I had thought of that. But I wasn't sure how it would work, as
you can't have variables in the same sense as imperative languages. So
if I create a mainloop sort of function, that passes the old state into
itself, then would I have to modify the output within that fucntion to
get it to display to the user, correct? Thanks for the response!
Regards,
Scott
More information about the Haskell-Cafe
mailing list