implicit final class TraversableOnceOps[A, M[X] <: TraversableOnce[X]] extends AnyVal
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- TraversableOnceOps
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new TraversableOnceOps(xs: M[A])
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
distinctBy[B](f: (A) ⇒ B)(implicit cbf: CanBuildFrom[M[A], A, M[A]]): M[A]
Almost like
distinct, but instead of comparing elements itself it compares their projections, returned by a given functionf.Almost like
distinct, but instead of comparing elements itself it compares their projections, returned by a given functionf.It's logically equivalent to doing stable grouping by
ffollowed by selecting the first value of each key.- f
projection function
- cbf
collection builder factory
- returns
a new sequence of elements which projection (obtained by applying the function
f) are the first occurrence of every other elements' projection of this sequence.
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
toString(): String
- Definition Classes
- Any
- val xs: M[A]