Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SCALA

scala list get element

scala> val l = List("a", "b", "c")
scala> l.lift(1)
Some("b")
scala> l.lift(5)
None
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #scala #list #element
ADD COMMENT
Topic
Name
2+7 =