Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SCALA

find a list of strings inside string scala

val a = "some random test message"
val keys = List("hi","random","test")
keys.exists(a.contains)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #find #list #strings #string #scala
ADD COMMENT
Topic
Name
9+5 =