Skip to content

Instantly share code, notes, and snippets.

@typelogic
Created January 24, 2020 09:16
Show Gist options
  • Select an option

  • Save typelogic/771f9ea798a33f3f04d11d3e205acdf2 to your computer and use it in GitHub Desktop.

Select an option

Save typelogic/771f9ea798a33f3f04d11d3e205acdf2 to your computer and use it in GitHub Desktop.
lazy evaluation in haskell
f1 a = a + 1
f2 a b
| b == 0 = 5
| otherwise = a b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment