Created
October 22, 2022 12:26
-
-
Save bjorn-einar-bjartnes-4ss/3af2e40bb749d32e400fb46130831dd5 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
// y(x) = x + 7 | |
// f(x) = x + 7 | |
let f x = x + 7 | |
(f 4).Dump("f(4)") | |
let a1 = Some 4 | |
let a2 = None | |
((Option.map f) a1).Dump("option_f(a1") | |
((Option.map f) a2).Dump("option_f(a2") | |
let b1 = [1;2;3;4] | |
let b2 = [1] | |
let b3 = [] | |
let list_f = List.map f | |
(list_f b1).Dump("list_f(b1") | |
(list_f b2).Dump("list_f(b2") | |
((List.map f) b3).Dump("list_f(b3") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment