Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pentlander/6d3fefe86e300e33e912cbb6d5646803 to your computer and use it in GitHub Desktop.
Save pentlander/6d3fefe86e300e33e912cbb6d5646803 to your computer and use it in GitHub Desktop.
Main {
map = [T, U](value: T, mapper: { map: (inp: T) -> U }): { value: U } ->
{ value = mapper.map(value) },
main = (): { value: Int } -> map("foobar", { map = (inp: String): Int -> 10 })
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment