Created
November 11, 2019 09:33
-
-
Save softberries/d2d0ac0409ae7fe1f5318b5424065b03 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
val nested: Nested[List, Option, Int] = Nested(lst) | |
val doubleNested = nested.map(_ * 2) | |
println(doubleNested.value)//List(Some(2), None, Some(4)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment