Skip to content

Instantly share code, notes, and snippets.

@AshyIsMe
Created March 6, 2015 06:13
Show Gist options
  • Save AshyIsMe/7c7a7fbda5f24c65c667 to your computer and use it in GitHub Desktop.
Save AshyIsMe/7c7a7fbda5f24c65c667 to your computer and use it in GitHub Desktop.
haskell lazy evaluation
λ: let numbers = [1..10]
λ: numbers
[1,2,3,4,5,6,7,8,9,10]
λ: filter (== 5) numbers
[5]
λ: take 1 $ filter (== 5) numbers
[5]
λ: take 1 $ filter (== 50) numbers
[]
λ:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment