Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SCALA

scala split string to list

val trimmedList: List[String] = str.split("
").map(_.trim).toList
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #scala #split #string #list
ADD COMMENT
Topic
Name
4+2 =