Skip to content

Instantly share code, notes, and snippets.

@Gabriella439
Created August 9, 2019 22:55
Show Gist options
  • Save Gabriella439/d88b85e3519d840d8e75f24bc22b1272 to your computer and use it in GitHub Desktop.
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`
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