final class ListOpsBinCompat0[A] extends AnyVal
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ListOpsBinCompat0
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new ListOpsBinCompat0(la: List[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
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
groupByNec[B](f: (A) ⇒ B)(implicit B: Order[B]): SortedMap[B, NonEmptyChain[A]]
Groups elements inside this
List
according to theOrder
of the keys produced by the given mapping function.Groups elements inside this
List
according to theOrder
of the keys produced by the given mapping function.scala> import cats.data.NonEmptyChain scala> import scala.collection.immutable.SortedMap scala> import cats.implicits._ scala> val list = List(12, -2, 3, -5) scala> list.groupByNec(_ >= 0) res0: SortedMap[Boolean, NonEmptyChain[Int]] = Map(false -> Chain(-2, -5), true -> Chain(12, 3))
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
toString(): String
- Definition Classes
- Any