Skip to content

Instantly share code, notes, and snippets.

@akhilvijayan05
Created May 12, 2019 11:19
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 akhilvijayan05/2c82afe4c7a8c1eeb845454eead6de28 to your computer and use it in GitHub Desktop.
Save akhilvijayan05/2c82afe4c7a8c1eeb845454eead6de28 to your computer and use it in GitHub Desktop.
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