Skip to content

Instantly share code, notes, and snippets.

@shigemk2
Created January 21, 2015 12:42
Show Gist options
  • Save shigemk2/0350badde259d8ef7fd2 to your computer and use it in GitHub Desktop.
Save shigemk2/0350badde259d8ef7fd2 to your computer and use it in GitHub Desktop.
main = do
let listOfFuns = map (*) [0..]
print $ (listOfFuns !! 4) 5
print $ map (\f -> f 3) [(1*),(2*),(3*)]
print $ take 10 $ map (\f -> 3) listOfFuns
print $ take 10 $ map (\f -> f 3) listOfFuns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment