[Haskell-cafe] Occurs check error, help!
Ivan Lazar Miljenovic
ivan.miljenovic at gmail.com
Sat Mar 20 18:12:24 EDT 2010
boblettoj <boblettoj99 at msn.com> writes:
> shuffle i cards = do
> gen <- mkStdGen 10
> return ([(cards!!i) : (shuffle (randomR (0, ((length cards)-2)) gen)
> (delete (cards!!i) cards))])
Thta last line doesn't make sense; should it be on the line above?
--
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
IvanMiljenovic.wordpress.com
More information about the Haskell-Cafe
mailing list