Single

zio.prelude.ParSeq.Single
final case class Single[+A](value: A) extends ParSeq[Nothing, A]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait ParSeq[Nothing, A]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def hashCode: Int

Calculate a hash code value for the object.

Calculate a hash code value for the object.

The default hashing algorithm is platform dependent.

Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

Attributes

Returns

the hash code value for this object.

Definition Classes
Any

Inherited methods

final def &&[Z1 <: Unit, A1 >: A](that: ParSeq[Z1, A1]): ParSeq[Z1, A1]

Combines this collection of events with that collection of events to return a new collection of events that represents this collection of events in parallel with that collection of events.

Combines this collection of events with that collection of events to return a new collection of events that represents this collection of events in parallel with that collection of events.

Attributes

Inherited from:
ParSeq
final def *>[Z1 <: Unit, B](that: ParSeq[Z1, B]): ParSeq[Z1, B]

A symbolic alias for zipRight.

A symbolic alias for zipRight.

Attributes

Inherited from:
ParSeq
final def ++[Z1 <: Unit, A1 >: A](that: ParSeq[Z1, A1]): ParSeq[Z1, A1]

Combines this collection of events with that collection of events to return a new collection of events that represents this collection of events followed by that collection of events.

Combines this collection of events with that collection of events to return a new collection of events that represents this collection of events followed by that collection of events.

Attributes

Inherited from:
ParSeq
final def <*[Z1 <: Unit, B](that: ParSeq[Z1, B]): ParSeq[Z1, A]

A symbolic alias for zipLeft.

A symbolic alias for zipLeft.

Attributes

Inherited from:
ParSeq
final def <*>[Z1 <: Unit, B](that: ParSeq[Z1, B]): ParSeq[Z1, (A, B)]

A symbolic alias for zip.

A symbolic alias for zip.

Attributes

Inherited from:
ParSeq
final def as[B](b: B): ParSeq[Nothing, B]

Maps the events in this collection of events to the specified constant value.

Maps the events in this collection of events to the specified constant value.

Attributes

Inherited from:
ParSeq
final def first(implicit ev: Nothing <:< Nothing): A

Returns the first event in this collection of events. If multiple events occur in parallel and before any other events then any of these events may be returned.

Returns the first event in this collection of events. If multiple events occur in parallel and before any other events then any of these events may be returned.

Attributes

Inherited from:
ParSeq
final def flatMap[Z1 <: Unit, B](f: A => ParSeq[Z1, B]): ParSeq[Z1, B]

Constructs a new collection of events for each event in this collection of events, collecting them back into a single collection of events.

Constructs a new collection of events for each event in this collection of events, collecting them back into a single collection of events.

Attributes

Inherited from:
ParSeq
final def flatten[Z1 <: Unit, B](implicit ev: A <:< ParSeq[Z1, B]): ParSeq[Z1, B]

Flattens a collection of collections of events into a single collection of events.

Flattens a collection of collections of events into a single collection of events.

Attributes

Inherited from:
ParSeq
final def fold[B](emptyCase: B, singleCase: A => B)(thenCase: (B, B) => B, bothCase: (B, B) => B): B

Folds over the events in this collection of events using the specified functions.

Folds over the events in this collection of events using the specified functions.

Attributes

Inherited from:
ParSeq
final def forEach[F[_] : Covariant, B](f: A => F[B]): F[ParSeq[Nothing, B]]

Performs the specified effectual function for each event in this collection of events, collecting them back into a single collection of events.

Performs the specified effectual function for each event in this collection of events, collecting them back into a single collection of events.

Attributes

Inherited from:
ParSeq
final def map[B](f: A => B): ParSeq[Nothing, B]

Transforms the type of events in this collection of events with the specified function.

Transforms the type of events in this collection of events with the specified function.

Attributes

Inherited from:
ParSeq

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
final def toCause: Cause[A]

Attributes

Inherited from:
ParSeq
final def toNonEmptyMultiSet(implicit ev: Nothing <:< Nothing): NonEmptyMultiSet[A]

Converts this collection of events to a NonEmptyMultiSet of events, discarding information about the sequential structure of events.

Converts this collection of events to a NonEmptyMultiSet of events, discarding information about the sequential structure of events.

Attributes

Inherited from:
ParSeq
final def zip[Z1 <: Unit, B](that: ParSeq[Z1, B]): ParSeq[Z1, (A, B)]

Combines this collection of events with that collection of events to return the Cartesian product of events, combining the elements into a tuple.

Combines this collection of events with that collection of events to return the Cartesian product of events, combining the elements into a tuple.

Attributes

Inherited from:
ParSeq
final def zipLeft[Z1 <: Unit, B](that: ParSeq[Z1, B]): ParSeq[Z1, A]

Combines this collection of events with that collection of events to return the Cartesian product of events, keeping only the events from this collection.

Combines this collection of events with that collection of events to return the Cartesian product of events, keeping only the events from this collection.

Attributes

Inherited from:
ParSeq
final def zipRight[Z1 <: Unit, B](that: ParSeq[Z1, B]): ParSeq[Z1, B]

Combines this collection of events with that collection of events to return the Cartesian product of events, keeping only the events from that collection.

Combines this collection of events with that collection of events to return the Cartesian product of events, keeping only the events from that collection.

Attributes

Inherited from:
ParSeq
final def zipWith[Z1 <: Unit, B, C](that: ParSeq[Z1, B])(f: (A, B) => C): ParSeq[Z1, C]

Combines this collection of events with that collection of events to return the Cartesian product of events using the specified function.

Combines this collection of events with that collection of events to return the Cartesian product of events using the specified function.

Attributes

Inherited from:
ParSeq