Created
January 4, 2018 21:46
-
-
Save ramirez7/5eecb76502bdf1ad01ae45f0d30c7099 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| λ: 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