Appends a string element to this sequence, if it doesn't already exist in the sequence.
Appends a string element to this sequence, if it doesn't already exist in the sequence.
If the string element already exists in this sequence, this method returns itself. If not,
this method returns a new MultiSelOptionSeq
with the passed value appended to the
end of the original MultiSelOptionSeq
.
a MultiSelOptionSeq
that contains the passed string value
Removes a string element to this sequence, if it already exists in the sequence.
Removes a string element to this sequence, if it already exists in the sequence.
If the string element does not already exist in this sequence, this method returns itself. If the element
is contained in this sequence, this method returns a new MultiSelOptionSeq
with the passed value
removed from the the original MultiSelOptionSeq
, leaving any other elements in the same order.
a MultiSelOptionSeq
that contains the passed string value
Selects an element by its index in the sequence.
Selects an element by its index in the sequence.
This method invokes apply
on the underlying immutable IndexedSeq[String]
, passing in idx
, and returns the result.
the index to select
the element of this sequence at index idx
, where 0 indicates the first element
The length of this sequence.
The length of this sequence.
This method invokes length
on the underlying immutable IndexedSeq[String]
and returns the result.
the number of elements in this sequence
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
This class is part of ScalaTest's Selenium DSL. Please see the documentation for
WebBrowser
for an overview of the Selenium DSL.This class enables syntax such as the following:
Instances of this class are returned from the
values
method ofMultiSel
.MultiSelOptionSeq
is an immutableIndexedSeq[String]
that wraps an underlying immutableIndexedSeq[String]
and adds two methods,+
and-
, to facilitate the+=
syntax for setting additional options of theMultiSel
. The Scala compiler will rewrite:To:
Thus, first a new
MultiSelOptionSeq
is created by invoking the+
method on theMultiSelOptionSeq
returned byvalues
, and that result is passed to thevalues_=
method.For symmetry, this class also offers a
-
method, which can be used to deselect an option, like this: