collection
Collection-related constraints.
Attributes
- See also
- Source
- collection.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
collection.type
Members list
Type members
Classlikes
Tests if the given collection contains a specific value.
Tests if the given collection contains a specific value.
Type parameters
- V
-
the value the input must contain.
Attributes
- Companion
- object
- Source
- collection.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Source
- collection.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Contain.type
Tests if at least one element satisfies the given constraint.
Tests if at least one element satisfies the given constraint.
Type parameters
- C
-
the constraint to test against each element.
Attributes
- Companion
- object
- Source
- collection.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Source
- collection.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Exists.type
Tests if each element satisfies the given constraint.
Tests if each element satisfies the given constraint.
Type parameters
- C
-
the constraint to test against each element.
Attributes
- Companion
- object
- Source
- collection.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Source
- collection.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ForAll.type
Tests if the head of the passed input satisfies the given constraint.
Tests if the head of the passed input satisfies the given constraint.
Type parameters
- C
-
the constraint to test against the first element (head).
Attributes
- Companion
- object
- Source
- collection.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Source
- collection.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Head.type
Tests if each element except the last one satisfies the given constraint.
Tests if each element except the last one satisfies the given constraint.
Type parameters
- C
-
the constraint to test against the init.
Attributes
- Companion
- object
- Source
- collection.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Source
- collection.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Init.type
Tests if the last element of the passed input satisfies the given constraint.
Tests if the last element of the passed input satisfies the given constraint.
Type parameters
- C
-
the constraint to test against the last element.
Attributes
- Companion
- object
- Source
- collection.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Source
- collection.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Last.type
Tests if the length of the passed input satisfies the given constraint.
Tests if the length of the passed input satisfies the given constraint.
Type parameters
- C
-
the constraint to test on the given input.
Attributes
- Companion
- object
- Source
- collection.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Source
- collection.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Length.type
Tests if each element except the first one satisfies the given constraint.
Tests if each element except the first one satisfies the given constraint.
Type parameters
- C
-
the constraint to test against the tail.
Attributes
- Companion
- object
- Source
- collection.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Source
- collection.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Tail.type
Types
Tests if the input is empty.