21 Jan
2010
21 Jan
'10
10:54 p.m.
Zbigniew Stanasiuk
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.
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. Zbig