[Haskell-beginners] Function nesting

Magnus Therning magnus at therning.org
Thu Jan 21 09:44:57 EST 2010

On Thu, Jan 21, 2010 at 2:02 PM, Zbigniew Stanasiuk
<zbigergofun at gmail.com> wrote:
> Hi all,
> I've just started learning Haskell and I have no idea how to nest function in
> following structure:
> Mod(5*Mod(4*Mod(3*Mod(2*Mod(1, m), m), m), m), m) ... etc.
> Could someone help me.

I don't quite understand what you mean by "nest function".  'Mod'
looks like a constructor in your code, but I somehow get the feeling
that you actually indend 'Mod' to be a function...


Magnus Therning                        (OpenPGP: 0xAB4DFBA4)
magnus@therning.org          Jabber: magnus@therning.org
http://therning.org/magnus         identi.ca|twitter: magthe

More information about the Beginners mailing list