collection
Collection-related constraints.
Attributes
- See also
-
string which contains String-specific implementations for most of these constraints.
- 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. Supports Iterable, String and Array
Tests if the given collection contains a specific value. Supports Iterable, String and Array
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.
Tests exact length. Supports Iterable, String and Array by default.
Tests exact length. Supports Iterable, String and Array by default.
Attributes
- Source
- collection.scala
Tests maximum length. Supports Iterable, String and Array by default.
Tests maximum length. Supports Iterable, String and Array by default.
Type parameters
- V
-
the maximum length of the tested input
Attributes
- Source
- collection.scala
Tests minimum length. Supports Iterable, String and Array by default.
Tests minimum length. Supports Iterable, String and Array by default.
Type parameters
- V
-
the minimum length of the tested input
Attributes
- Source
- collection.scala