Last active
March 14, 2022 12:15
-
-
Save stijnmoreels/1207a2fcb0ed32d584d071396d94befe 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
let mark = { Age = Age 10; Pass = Some (Tested Positive) } | |
let pass_tested = Compose.prism Guest.pass_ CoronaPass.testResult_ | |
let testResult = Optic.get pass_tested mark | |
let updatedMark = Optic.set pass_tested Negative mark |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment