object list extends ListInstances with ListFunctions
- Source
- List.scala
- Alphabetic
- By Inheritance
- list
- ListFunctions
- ListInstances
- ListInstances0
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
<^>[A, B](as: List[A])(f: (NonEmptyList[A]) ⇒ B)(implicit arg0: Monoid[B]): B
Returns
fapplied to the contents ofasif non-empty, otherwise, the zero element of theMonoidfor the typeB.Returns
fapplied to the contents ofasif non-empty, otherwise, the zero element of theMonoidfor the typeB.- Definition Classes
- ListFunctions
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
adjacentPairs[A](as: List[A]): List[(A, A)]
[(as(0), as(1)), (as(1), as(2)), ... (as(size-2), as(size-1))][(as(0), as(1)), (as(1), as(2)), ... (as(size-2), as(size-1))]- Definition Classes
- ListFunctions
-
final
def
allPairs[A](as: List[A]): List[(A, A)]
Combinations of
asandas, excluding same-element pairs.Combinations of
asandas, excluding same-element pairs.- Definition Classes
- ListFunctions
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
final
def
breakM[A, M[_]](as: List[A])(p: (A) ⇒ M[Boolean])(implicit arg0: Monad[M]): M[(List[A], List[A])]
spanMwithp's complement.spanMwithp's complement.- Definition Classes
- ListFunctions
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
filterM[A, M[_]](as: List[A])(p: (A) ⇒ M[Boolean])(implicit arg0: Applicative[M]): M[List[A]]
- Definition Classes
- ListFunctions
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
findM[A, M[_]](as: List[A])(p: (A) ⇒ M[Boolean])(implicit arg0: Monad[M]): M[Option[A]]
Run
p(a)s left-to-right until it yields a true value, answeringSome(that), orNoneif nothing matchedp.Run
p(a)s left-to-right until it yields a true value, answeringSome(that), orNoneif nothing matchedp.- Definition Classes
- ListFunctions
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
groupBy1[A, B](as: List[A])(f: (A) ⇒ B): Map[B, NonEmptyList[A]]
As with the standard library
groupBybut preserving the fact that the values in the Map must be non-emptyAs with the standard library
groupBybut preserving the fact that the values in the Map must be non-empty- Definition Classes
- ListFunctions
-
final
def
groupWhen[A](as: List[A])(p: (A, A) ⇒ Boolean): List[NonEmptyList[A]]
groupWhenMspecialized to scalaz.Id.Id.groupWhenMspecialized to scalaz.Id.Id.- Definition Classes
- ListFunctions
-
final
def
groupWhenM[A, M[_]](as: List[A])(p: (A, A) ⇒ M[Boolean])(implicit arg0: Monad[M]): M[List[NonEmptyList[A]]]
Split at each point where
p(as(n), as(n+1))yields false.Split at each point where
p(as(n), as(n+1))yields false.- Definition Classes
- ListFunctions
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
initz[A](as: List[A]): List[List[A]]
[Nil, as take 1, as take 2, ..., as][Nil, as take 1, as take 2, ..., as]- Definition Classes
- ListFunctions
-
final
def
intersperse[A](as: List[A], a: A): List[A]
Intersperse the element
abetween each adjacent pair of elements inasIntersperse the element
abetween each adjacent pair of elements inas- Definition Classes
- ListFunctions
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
implicit
def
listEqual[A](implicit A0: Equal[A]): Equal[List[A]]
- Definition Classes
- ListInstances0
-
implicit
val
listInstance: Traverse[List] with MonadPlus[List] with BindRec[List] with Zip[List] with Unzip[List] with Align[List] with IsEmpty[List] with Cobind[List]
- Definition Classes
- ListInstances
-
implicit
def
listMonoid[A]: Monoid[List[A]]
- Definition Classes
- ListInstances
-
implicit
def
listOrder[A](implicit A0: Order[A]): Order[List[A]]
- Definition Classes
- ListInstances
-
implicit
def
listShow[A](implicit arg0: Show[A]): Show[List[A]]
- Definition Classes
- ListInstances
-
final
def
mapAccumLeft[A, B, C](as: List[A])(c: C, f: (C, A) ⇒ (C, B)): (C, List[B])
All of the
Bs, in order, and the finalCacquired by a stateful left fold overas.All of the
Bs, in order, and the finalCacquired by a stateful left fold overas.- Definition Classes
- ListFunctions
-
final
def
mapAccumRight[A, B, C](as: List[A])(c: C, f: (C, A) ⇒ (C, B)): (C, List[B])
All of the
Bs, in orderas-wise, and the finalCacquired by a stateful right fold overas.All of the
Bs, in orderas-wise, and the finalCacquired by a stateful right fold overas.- Definition Classes
- ListFunctions
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
nil[A]: List[A]
scala.Nil with a sometimes more convenient type
scala.Nil with a sometimes more convenient type
- Definition Classes
- ListFunctions
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
partitionM[A, M[_]](as: List[A])(p: (A) ⇒ M[Boolean])(implicit F: Applicative[M]): M[(List[A], List[A])]
A pair of passing and failing values of
asagainstp.A pair of passing and failing values of
asagainstp.- Definition Classes
- ListFunctions
-
final
def
powerset[A](as: List[A]): List[List[A]]
- Definition Classes
- ListFunctions
-
final
def
spanM[A, M[_]](as: List[A])(p: (A) ⇒ M[Boolean])(implicit arg0: Monad[M]): M[(List[A], List[A])]
A pair of the longest prefix of passing
asagainstp, and the remainder.A pair of the longest prefix of passing
asagainstp, and the remainder.- Definition Classes
- ListFunctions
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
tailOption[A](as: List[A]): Option[List[A]]
- Definition Classes
- ListFunctions
-
final
def
tailz[A](as: List[A]): List[List[A]]
[as, as.tail, as.tail.tail, ..., Nil][as, as.tail, as.tail.tail, ..., Nil]- Definition Classes
- ListFunctions
-
final
def
takeUntilM[A, M[_]](as: List[A])(p: (A) ⇒ M[Boolean])(implicit arg0: Monad[M]): M[List[A]]
Run
p(a)s and collectaswhilepyields false.Run
p(a)s and collectaswhilepyields false. Don't run anyps after the first true.- Definition Classes
- ListFunctions
-
final
def
takeWhileM[A, M[_]](as: List[A])(p: (A) ⇒ M[Boolean])(implicit arg0: Monad[M]): M[List[A]]
Run
p(a)s and collectaswhilepyields true.Run
p(a)s and collectaswhilepyields true. Don't run anyps after the first false.- Definition Classes
- ListFunctions
-
final
def
toNel[A](as: List[A]): Option[NonEmptyList[A]]
- Definition Classes
- ListFunctions
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
toZipper[A](as: List[A]): Option[Zipper[A]]
- Definition Classes
- ListFunctions
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
zipperEnd[A](as: List[A]): Option[Zipper[A]]
- Definition Classes
- ListFunctions
- object listSyntax extends ToListOps