trait VectorFunctions extends AnyRef
- Alphabetic
- By Inheritance
- VectorFunctions
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def <^>[A, B](as: Vector[A])(f: (NonEmptyList[A]) => B)(implicit arg0: Monoid[B]): B
Returns
f
applied to the contents ofas
if non-empty, otherwise, the zero element of theMonoid
for the typeB
. - final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def adjacentPairs[A](as: Vector[A]): Vector[(A, A)]
[(as(0), as(1)), (as(1), as(2)), ... (as(size-2), as(size-1))]
- final def allPairs[A](as: Vector[A]): Vector[(A, A)]
Combinations of
as
andas
, excluding same-element pairs. - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def breakM[A, M[_]](as: Vector[A])(p: (A) => M[Boolean])(implicit arg0: Monad[M]): M[(Vector[A], Vector[A])]
spanM
withp
's complement. - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def empty[A]: Vector[A]
- Attributes
- protected
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def filterM[A, M[_]](as: Vector[A])(p: (A) => M[Boolean])(implicit F: Applicative[M]): M[Vector[A]]
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def findM[A, M[_]](as: Vector[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)
, orNone
if nothing matchedp
. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def groupWhen[A](as: Vector[A])(p: (A, A) => Boolean): Vector[Vector[A]]
groupWhenM
specialized to scalaz.Id.Id. - final def groupWhenM[A, M[_]](as: Vector[A])(p: (A, A) => M[Boolean])(implicit arg0: Monad[M]): M[Vector[Vector[A]]]
Split at each point where
p(as(n), as(n+1))
yields false. - def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def initz[A](as: Vector[A]): Vector[Vector[A]]
[
empty Vector, as take 1, as take 2, ..., as]
- final def intersperse[A](as: Vector[A], a: A): Vector[A]
Intersperse the element
a
between each adjacent pair of elements inas
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def mapAccumLeft[A, B, C](as: Vector[A])(c: C, f: (C, A) => (C, B)): (C, Vector[B])
All of the
B
s, in order, and the finalC
acquired by a stateful left fold overas
. - final def mapAccumRight[A, B, C](as: Vector[A])(c: C, f: (C, A) => (C, B)): (C, Vector[B])
All of the
B
s, in orderas
-wise, and the finalC
acquired by a stateful right fold overas
. - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def partitionM[A, M[_]](as: Vector[A])(p: (A) => M[Boolean])(implicit F: Applicative[M]): M[(Vector[A], Vector[A])]
A pair of passing and failing values of
as
againstp
. - final def powerset[A](as: Vector[A]): Vector[Vector[A]]
- final def spanM[A, M[_]](as: Vector[A])(p: (A) => M[Boolean])(implicit arg0: Monad[M]): M[(Vector[A], Vector[A])]
A pair of the longest prefix of passing
as
againstp
, and the remainder. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def tailz[A](as: Vector[A]): Vector[Vector[A]]
[as, as.tail, as.tail.tail, ...,
empty Vector]
- final def takeUntilM[A, M[_]](as: Vector[A])(p: (A) => M[Boolean])(implicit arg0: Monad[M]): M[Vector[A]]
Run
p(a)
s and collectas
whilep
yields false.Run
p(a)
s and collectas
whilep
yields false. Don't run anyp
s after the first true. - final def takeWhileM[A, M[_]](as: Vector[A])(p: (A) => M[Boolean])(implicit arg0: Monad[M]): M[Vector[A]]
Run
p(a)
s and collectas
whilep
yields true.Run
p(a)
s and collectas
whilep
yields true. Don't run anyp
s after the first false. - final def toNel[A](as: Vector[A]): Option[NonEmptyList[A]]
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def toZipper[A](as: Vector[A]): Option[Zipper[A]]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def zipperEnd[A](as: Vector[A]): Option[Zipper[A]]