[Haskell-beginners] Re: Function nesting

Zbigniew Stanasiuk zbigergofun at gmail.com
Thu Jan 21 09:54:33 EST 2010

Zbigniew Stanasiuk <zbigergofun <at> gmail.com> writes:

> Hi all,
> I've just started learning Haskell and I have no idea how to nest function 
> following structure:
> Mod(5*Mod(4*Mod(3*Mod(2*Mod(1, m), m), m), m), m) ... etc.
> Could someone help me.
> Regards,
> Zbig

To be precise, I have list [1.20]::Int, mod function, m::Int as a input and as
a result I want to get above. I have tried to play with fold family functions 
but no good results.


More information about the Beginners mailing list