Created
August 9, 2019 22:55
-
-
Save Gabriella439/d88b85e3519d840d8e75f24bc22b1272 to your computer and use it in GitHub Desktop.
Example of how the equivalent of `foreach` in Dhall is `Prelude.List.map`
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 Prelude = https://prelude.dhall-lang.org/package.dhall | |
let FN = Natural/even | |
let a = 2 | |
let b = 3 | |
let c = 5 | |
in Prelude.List.map Natural Bool FN [ a, b, c] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment