[Haskell-cafe] If the local variable can be changed ...

Ivan Miljenovic ivan.miljenovic at gmail.com
Tue Mar 9 19:36:21 EST 2010

On 10 March 2010 11:25, zaxis <z_axis at 163.com> wrote:
> So if the local variable can be changed, then we can use loop, etc. same as
> imperative languages. For example, for (i=0; i<100; i++)  where `i` is a
> local variable in function.

But why would we want to?  That's what folds, etc. are for!

Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com

More information about the Haskell-Cafe mailing list