Home »
Code Examples »
Scala Code Examples
Scala – Class Object Function to Convert Multiline String to List Sequence Code Example
The code for Class Object Function to Convert Multiline String to List Sequence
object MultilineStringToList extends App {
val list = Q("""
http://angel.co/mile-high-organics
http://angel.co/kindara
http://angel.co/precog
http://angel.co/pivotdesk
""")
list.foreach(println)
}
/*
which printed out this:
http://angel.co/mile-high-organics
http://angel.co/kindara
http://angel.co/precog
http://angel.co/pivotdesk
*/