Re: [Haskell-cafe] Re: Overriding a Prelude function?

OK, the 3rd and 4th responses below are the same, which is as it should be. I think we can put this thread to bed.
Thanks to all who participated.
Michael
*Main> rollDie 362354
(3,1795116384)
*Main> rollDie 1795116384
(1,523309185)
*Main> rollDie 523309185
(4,1311937830)
*Main> (rollDie ~>> (rollDie ~>> rollDie)) 362354
(4,1311937830)
*Main>
--- On Thu, 4/23/09, Heinrich Apfelmus
Well, you obviously need an initial seed:
rollDie 0xdeadbeef ~>> (rollDie ~>> rollDie)
Achim means (rollDie ~>> (rollDie ~>> rollDie)) 0xdeadbeef Regards, apfelmus -- http://apfelmus.nfshost.com _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (1)
-
michael rice