trait IterableMonoTransforms[+A, +Repr] extends Any
Type-preserving transforms over iterables. Operations defined here return in their result iterables of the same type as the one they are invoked on.
- Alphabetic
- By Inheritance
- IterableMonoTransforms
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
drop(n: Int): Repr
The rest of the collection without its
nfirst elements.The rest of the collection without its
nfirst elements. For linear, immutable collections this should avoid making a copy. -
def
equals(arg0: Any): Boolean
- Definition Classes
- Any
-
def
filter(p: (A) ⇒ Boolean): Repr
All elements satisfying predicate
p -
def
hashCode(): Int
- Definition Classes
- Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
partition(p: (A) ⇒ Boolean): (Repr, Repr)
A pair of, first, all elements that satisfy prediacte
pand, second, all elements that do not.A pair of, first, all elements that satisfy prediacte
pand, second, all elements that do not. Interesting because it splits a collection in two.The default implementation provided here needs to traverse the collection twice. Strict collections have an overridden version of
partitioninBuildable, which requires only a single traversal. -
def
tail: Repr
The rest of the collection without its first element.
-
def
take(n: Int): Repr
A collection containing the first
nelements of this collection. -
def
toString(): String
- Definition Classes
- Any