Object/Trait

scalaz.std

AllFunctions

Related Docs: trait AllFunctions | package std

Permalink

object AllFunctions extends AllFunctions

Source
AllFunctions.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AllFunctions
  2. AllFunctions
  3. StringFunctions
  4. OrderingFunctions
  5. StreamFunctions
  6. OptionFunctions
  7. ListFunctions
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def <^>[A, B](as: List[A])(f: (NonEmptyList[A]) ⇒ B)(implicit arg0: Monoid[B]): B

    Permalink

    Returns f applied to the contents of as if non-empty, otherwise, the zero element of the Monoid for the type B.

    Returns f applied to the contents of as if non-empty, otherwise, the zero element of the Monoid for the type B.

    Definition Classes
    ListFunctions
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. final def ToScalazOrderFromOrdering[A](oa: scala.math.Ordering[A]): Order[A]

    Permalink
    Definition Classes
    OrderingFunctions
  6. final def adjacentPairs[A](as: List[A]): List[(A, A)]

    Permalink

    [(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
  7. final def allPairs[A](as: List[A]): List[(A, A)]

    Permalink

    Combinations of as and as, excluding same-element pairs.

    Combinations of as and as, excluding same-element pairs.

    Definition Classes
    ListFunctions
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. final def breakM[A, M[_]](as: List[A])(p: (A) ⇒ M[Boolean])(implicit arg0: Monad[M]): M[(List[A], List[A])]

    Permalink

    spanM with p's complement.

    spanM with p's complement.

    Definition Classes
    ListFunctions
  10. final def cata[A, X](oa: Option[A])(some: (A) ⇒ X, none: ⇒ X): X

    Permalink

    Catamorphism over the option.

    Catamorphism over the option. Returns the provided function some applied to item contained in the Option if it is defined, otherwise, the provided value none.

    Definition Classes
    OptionFunctions
  11. def charsNel(s: String, e: ⇒ NonEmptyList[Char]): NonEmptyList[Char]

    Permalink

    Constructs a non-empty list with the given string if it is not empty, otherwise, returns the second argument.

    Constructs a non-empty list with the given string if it is not empty, otherwise, returns the second argument.

    Definition Classes
    StringFunctions
  12. def charsNel(s: String): Option[NonEmptyList[Char]]

    Permalink

    Constructs a non-empty list with the value if it is not empty, otherwise, throws an error.

    Constructs a non-empty list with the value if it is not empty, otherwise, throws an error.

    Definition Classes
    StringFunctions
  13. def charsNelErr(s: String, message: ⇒ String): NonEmptyList[Char]

    Permalink
    Definition Classes
    StringFunctions
  14. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def encode(s: String)(implicit c: CharSet): Array[Byte]

    Permalink

    Encode s according to a Java character set identifier.

    Encode s according to a Java character set identifier.

    Definition Classes
    StringFunctions
  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def filterM[A, M[_]](as: List[A])(p: (A) ⇒ M[Boolean])(implicit arg0: Applicative[M]): M[List[A]]

    Permalink
    Definition Classes
    ListFunctions
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. final def findM[A, M[_]](as: List[A])(p: (A) ⇒ M[Boolean])(implicit arg0: Monad[M]): M[Option[A]]

    Permalink

    Run p(a)s left-to-right until it yields a true value, answering Some(that), or None if nothing matched p.

    Run p(a)s left-to-right until it yields a true value, answering Some(that), or None if nothing matched p.

    Definition Classes
    ListFunctions
  21. final def fold[A, X](oa: Option[A])(some: (A) ⇒ X, none: ⇒ X): X

    Permalink

    Alias for cata

    Alias for cata

    Definition Classes
    OptionFunctions
  22. final def foldLift[F[_], A, B](oa: Option[A])(b: ⇒ B, k: (F[A]) ⇒ B)(implicit p: Applicative[F]): B

    Permalink

    Returns the given value if None, otherwise lifts the Some value and passes it to the given function.

    Returns the given value if None, otherwise lifts the Some value and passes it to the given function.

    Definition Classes
    OptionFunctions
  23. final def foldLiftOpt[A, B](oa: Option[A])(b: ⇒ B, k: (Option[A]) ⇒ B): B

    Permalink

    Returns the given value if None, otherwise lifts the Some value to Option and passes it to the given function.

    Returns the given value if None, otherwise lifts the Some value to Option and passes it to the given function.

    Definition Classes
    OptionFunctions
  24. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def groupByM[A, M[_]](as: List[A])(p: (A, A) ⇒ M[Boolean])(implicit arg0: Monad[M]): M[List[List[A]]]

    Permalink

    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
  26. final def groupWhen[A](as: List[A])(p: (A, A) ⇒ Boolean): List[List[A]]

    Permalink

    groupByM specialized to scalaz.Id.Id.

    groupByM specialized to scalaz.Id.Id.

    Definition Classes
    ListFunctions
  27. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def heads[A](as: Stream[A]): Stream[Stream[A]]

    Permalink

    [as take 1, as take 2, ..., as]

    [as take 1, as take 2, ..., as]

    Definition Classes
    StreamFunctions
  29. final def initz[A](as: List[A]): List[List[A]]

    Permalink

    [Nil, as take 1, as take 2, ..., as]

    [Nil, as take 1, as take 2, ..., as]

    Definition Classes
    ListFunctions
  30. final def intersperse[A](as: Stream[A], a: A): Stream[A]

    Permalink

    Intersperse the element a between each adjacent pair of elements in as

    Intersperse the element a between each adjacent pair of elements in as

    Definition Classes
    StreamFunctions
  31. final def intersperse[A](as: List[A], a: A): List[A]

    Permalink

    Intersperse the element a between each adjacent pair of elements in as

    Intersperse the element a between each adjacent pair of elements in as

    Definition Classes
    ListFunctions
  32. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  33. final def mapAccumLeft[A, B, C](as: List[A])(c: C, f: (C, A) ⇒ (C, B)): (C, List[B])

    Permalink

    All of the Bs, in order, and the final C acquired by a stateful left fold over as.

    All of the Bs, in order, and the final C acquired by a stateful left fold over as.

    Definition Classes
    ListFunctions
  34. final def mapAccumRight[A, B, C](as: List[A])(c: C, f: (C, A) ⇒ (C, B)): (C, List[B])

    Permalink

    All of the Bs, in order as-wise, and the final C acquired by a stateful right fold over as.

    All of the Bs, in order as-wise, and the final C acquired by a stateful right fold over as.

    Definition Classes
    ListFunctions
  35. final def merge[A](s1: Stream[A], s2: Stream[A]): Stream[A]

    Permalink
    Definition Classes
    StreamFunctions
  36. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  37. final def none[A]: Option[A]

    Permalink

    scala.None with a sometimes more convenient type.

    scala.None with a sometimes more convenient type.

    Definition Classes
    OptionFunctions
  38. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  39. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  40. final def orEmpty[A, M[_]](oa: Option[A])(implicit arg0: Applicative[M], arg1: PlusEmpty[M]): M[A]

    Permalink

    Returns the item contained in the Option wrapped in type M if the Option is defined, otherwise, the empty value for type M.

    Returns the item contained in the Option wrapped in type M if the Option is defined, otherwise, the empty value for type M.

    Definition Classes
    OptionFunctions
  41. def parseBoolean(s: String): Validation[IllegalArgumentException, Boolean]

    Permalink
    Definition Classes
    StringFunctions
  42. def parseByte(s: String): Validation[NumberFormatException, Byte]

    Permalink
    Definition Classes
    StringFunctions
  43. def parseDouble(s: String): Validation[NumberFormatException, Double]

    Permalink
    Definition Classes
    StringFunctions
  44. def parseFloat(s: String): Validation[NumberFormatException, Float]

    Permalink
    Definition Classes
    StringFunctions
  45. def parseInt(s: String): Validation[NumberFormatException, Int]

    Permalink
    Definition Classes
    StringFunctions
  46. def parseLong(s: String): Validation[NumberFormatException, Long]

    Permalink
    Definition Classes
    StringFunctions
  47. def parseShort(s: String): Validation[NumberFormatException, Short]

    Permalink
    Definition Classes
    StringFunctions
  48. final def partitionM[A, M[_]](as: List[A])(p: (A) ⇒ M[Boolean])(implicit F: Applicative[M]): M[(List[A], List[A])]

    Permalink

    A pair of passing and failing values of as against p.

    A pair of passing and failing values of as against p.

    Definition Classes
    ListFunctions
  49. def plural(s: String, n: Long): String

    Permalink

    Returns the same String value if the given value is 1 otherwise pluralises this String by appending an "s" unless this String ends with "y" and not one of ["ay", "ey", "iy", "oy", "uy"] in which case the 'y' character is chopped and "ies" is appended.

    Returns the same String value if the given value is 1 otherwise pluralises this String by appending an "s" unless this String ends with "y" and not one of ["ay", "ey", "iy", "oy", "uy"] in which case the 'y' character is chopped and "ies" is appended.

    Definition Classes
    StringFunctions
  50. final def powerset[A](as: List[A]): List[List[A]]

    Permalink
    Definition Classes
    ListFunctions
  51. final def some[A](a: A): Option[A]

    Permalink

    scala.Some.apply with a sometimes more convenient type.

    scala.Some.apply with a sometimes more convenient type.

    Definition Classes
    OptionFunctions
  52. final def spanM[A, M[_]](as: List[A])(p: (A) ⇒ M[Boolean])(implicit arg0: Monad[M]): M[(List[A], List[A])]

    Permalink

    A pair of the longest prefix of passing as against p, and the remainder.

    A pair of the longest prefix of passing as against p, and the remainder.

    Definition Classes
    ListFunctions
  53. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  54. final def tails[A](as: Stream[A]): Stream[Stream[A]]

    Permalink

    [as, as.tail, as.tail.tail, ..., Stream(as.last)]

    [as, as.tail, as.tail.tail, ..., Stream(as.last)]

    Definition Classes
    StreamFunctions
  55. final def tailz[A](as: List[A]): List[List[A]]

    Permalink

    [as, as.tail, as.tail.tail, ..., Nil]

    [as, as.tail, as.tail.tail, ..., Nil]

    Definition Classes
    ListFunctions
  56. final def takeUntilM[A, M[_]](as: List[A])(p: (A) ⇒ M[Boolean])(implicit arg0: Monad[M]): M[List[A]]

    Permalink

    Run p(a)s and collect as while p yields false.

    Run p(a)s and collect as while p yields false. Don't run any ps after the first true.

    Definition Classes
    ListFunctions
  57. final def takeWhileM[A, M[_]](as: List[A])(p: (A) ⇒ M[Boolean])(implicit arg0: Monad[M]): M[List[A]]

    Permalink

    Run p(a)s and collect as while p yields true.

    Run p(a)s and collect as while p yields true. Don't run any ps after the first false.

    Definition Classes
    ListFunctions
  58. final def toFailure[A, B](oa: Option[A])(b: ⇒ B): Validation[A, B]

    Permalink
    Definition Classes
    OptionFunctions
  59. final def toLeft[A, B](oa: Option[A])(b: ⇒ B): \/[A, B]

    Permalink
    Definition Classes
    OptionFunctions
  60. final def toNel[A](as: List[A]): Option[NonEmptyList[A]]

    Permalink
    Definition Classes
    ListFunctions
  61. final def toRight[A, E](oa: Option[A])(e: ⇒ E): \/[E, A]

    Permalink
    Definition Classes
    OptionFunctions
  62. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  63. final def toSuccess[A, E](oa: Option[A])(e: ⇒ E): Validation[E, A]

    Permalink
    Definition Classes
    OptionFunctions
  64. final def toZipper[A](as: Stream[A]): Option[Zipper[A]]

    Permalink
    Definition Classes
    StreamFunctions
  65. final def toZipper[A](as: List[A]): Option[Zipper[A]]

    Permalink
    Definition Classes
    ListFunctions
  66. def unfold[A, B](seed: A)(f: (A) ⇒ Option[(B, A)]): Stream[B]

    Permalink
    Definition Classes
    StreamFunctions
  67. final def unfoldForest[A, B](as: Stream[A])(f: (A) ⇒ (B, () ⇒ Stream[A])): Stream[Tree[B]]

    Permalink
    Definition Classes
    StreamFunctions
  68. final def unfoldForestM[A, B, M[_]](as: Stream[A])(f: (A) ⇒ M[(B, Stream[A])])(implicit arg0: Monad[M]): M[Stream[Tree[B]]]

    Permalink
    Definition Classes
    StreamFunctions
  69. def unsafeCharsNel(s: String): NonEmptyList[Char]

    Permalink
    Definition Classes
    StringFunctions
  70. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  71. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  72. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  73. final def zapp[A, B, C](a: Stream[A])(f: Stream[(A) ⇒ (B) ⇒ C]): Stream[(B) ⇒ C]

    Permalink
    Definition Classes
    StreamFunctions
  74. final def zipperEnd[A](as: Stream[A]): Option[Zipper[A]]

    Permalink
    Definition Classes
    StreamFunctions
  75. final def zipperEnd[A](as: List[A]): Option[Zipper[A]]

    Permalink
    Definition Classes
    ListFunctions

Inherited from AllFunctions

Inherited from StringFunctions

Inherited from math.OrderingFunctions

Inherited from StreamFunctions

Inherited from OptionFunctions

Inherited from ListFunctions

Inherited from AnyRef

Inherited from Any

Ungrouped