-
-
Save AshyIsMe/7c7a7fbda5f24c65c667 to your computer and use it in GitHub Desktop.
haskell lazy evaluation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
λ: 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