Skip to content

Instantly share code, notes, and snippets.

@ramirez7
Created January 4, 2018 21:46
Show Gist options
  • Select an option

  • Save ramirez7/5eecb76502bdf1ad01ae45f0d30c7099 to your computer and use it in GitHub Desktop.

Select an option

Save ramirez7/5eecb76502bdf1ad01ae45f0d30c7099 to your computer and use it in GitHub Desktop.
λ: import Dhall.Repl
λ: defaultRepl
>>> List/head Integer [1, 2, 3]
Optional Integer
[1] : Optional Integer
>>> List/head Integer ([] : List Integer)
Optional Integer
[] : Optional Integer
>>> Natural/fold
Natural → ∀(natural : Type) → ∀(succ : natural → natural) → ∀(zero : natural) → natural
Natural/fold
>>> :let f = \(x : Natural) -> x + +1
>>> f +3
Natural
+4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment