Skip to content

Instantly share code, notes, and snippets.

@softberries
Created November 11, 2019 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save softberries/d2d0ac0409ae7fe1f5318b5424065b03 to your computer and use it in GitHub Desktop.
Save softberries/d2d0ac0409ae7fe1f5318b5424065b03 to your computer and use it in GitHub Desktop.
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