Constructs a new NonEmptyString given at least one character.
Constructs a new NonEmptyString given at least one character.
the first character (with index 0) contained in this NonEmptyString
a varargs of zero or more other characters (with index 1, 2, 3, ...) contained in this NonEmptyString
Constructs a new NonEmptyString given at least one element.
Constructs a new NonEmptyString given at least one element.
the String represented by this NonEmptyString
Optionally construct a NonEmptyString containing the characters, if any, of a given GenSeq.
Optionally construct a NonEmptyString containing the characters, if any, of a given GenSeq.
the GenSeq of Char with which to construct a NonEmptyString
a NonEmptyString containing the elements of the given GenSeq, if non-empty, wrapped in
a Some; else None if the GenSeq is empty
Implicit conversion from NonEmptyString to GenTraversableOnce[Char].
Implicit conversion from NonEmptyString to GenTraversableOnce[Char].
One use case for this implicit conversion is to enable GenSeq[NonEmptyString]s to be flattened.
Here's an example:
scala> Vector(NonEmptyString("123"), NonEmptyString("34"), NonEmptyString("5678")).flatten
res0: scala.collection.immutable.Vector[Char] = Vector('1', '2', '3', '3', '4', '5', '6', '7', '8')
the NonEmptyString to convert to a GenTraversableOnce[Char]
a GenTraversableOnce[Char] containing the elements, in order, of this NonEmptyString
Variable argument extractor for NonEmptyStrings.
Variable argument extractor for NonEmptyStrings.
an Seq containing this NonEmptyStrings elements, wrapped in a Some
Companion object for class
NonEmptyString.