Created
May 12, 2019 11:19
-
-
Save akhilvijayan05/2c82afe4c7a8c1eeb845454eead6de28 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
import cats.implicits._ | |
val listValue: List[Option[Int]] = List(35.some, 45.some, 55.some)) | |
val result: Option[List[Int]] = listValue.flatTraverse(_.map(x=>List(x))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment