[Haskell-beginners] Translating imperative algorithms to Haskell

Mikhail Novikov freiksenet at gmail.com
Fri Feb 19 17:10:59 EST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello!

Maybe I should look into ST monad for this. :) I am still interested if there is a way to make this kind of functions in purely functional way.

Best regards, Mikhail

On 02/19/2010 11:18 PM, Felipe Lessa wrote:
> On Fri, Feb 19, 2010 at 10:07:19PM +0200, Mikhail Novikov wrote:
>> So basically, I wonder if there is some generic way to transfer
>> imperative algorithms with local state to functional style
>> without making them overly complex.
> 
> It may be worthwhile to not translate at all.  ST monad works as
> a charm :).  Haskell is one of the best imperative languages.
> 
> --
> Felipe.
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkt/DHMACgkQPHyh4sfuKrlfBQCfdnN8qaHmP1B2YPqVqifwTAAU
HLgAnih0r81xjOOmd7SYDWPjOWZ75YaK
=5pBO
-----END PGP SIGNATURE-----


More information about the Beginners mailing list