[Haskell-beginners] Need help groking the statement: expression1 in term:expression2

Olumide 50295 at web.de
Tue Mar 22 10:43:46 UTC 2016


Hello List,

I'd appreciate help understanding the second line of following block of 
code (from LYH, first line added for completeness),

http://learnyouahaskell.com/input-and-output#randomness
randoms' :: (RandomGen g, Random a) => g -> [a]
randoms' gen = let (value, newGen) = random gen in value:randoms' newGen

The part I'm really struggling with is random gen in value:randoms' newGen

Thanks,

- Olumide


More information about the Beginners mailing list