Created
July 15, 2021 01:54
-
-
Save pentlander/6d3fefe86e300e33e912cbb6d5646803 to your computer and use it in GitHub Desktop.
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
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