Created
September 16, 2016 15:06
-
-
Save kolektiv/8704b096befece9097063ff3e3b6e8a1 to your computer and use it in GitHub Desktop.
morphisms, etc.
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 record = | |
{ Ages = "24,56,45,10" } | |
(* 56 *) | |
let oldest = | |
Optic.get recordints_ record |> List.max | |
(* { Ages = "25,57,46,11" } *) | |
let record' = | |
Optic.map recordints_ (List.map ((+) 1)) record |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment