DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SCALA
scala list of options to option of list
if (myList.exists(_.isEmpty)) None else Some(myList.map(_.get))
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#scala
#list
#options
#option
#list
ADD COMMENT
Topic
COMMENT
Name
5+6 =
Submit