Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SCALA

get first string from list scala

val list = List(1, 2, 3)
list.head

> 1
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #string #list #scala
ADD COMMENT
Topic
Name
1+8 =