Syntax

io.github.windymelt.qw.Syntax$
object Syntax

Enables qw syntax for string.

import io.github.windymelt.qw.Syntax.*
qw"foo bar buzz" // => "foo" :: "bar" :: "buzz" :: Nil

You can use newline for separator too:

qw"""
new
line
separated
""" // => "new" :: "line" :: "separated" :: Nil

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Syntax.type

Members list

Extensions

Extensions

extension (sc: StringContext)(sc: StringContext)
def qw(args: String*): List[String]

Splits strings with whitespace character and constructs List.

Splits strings with whitespace character and constructs List.

Attributes