Lazy

zio.blocks.schema.Lazy
See theLazy companion trait
object Lazy

Constructors for Lazy.

Attributes

Companion
trait
Source
Lazy.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Lazy.type

Members list

Value members

Concrete methods

def apply[A](expression: => A): Lazy[A]

Returns a Lazy that evaluates expression when it is forced.

Returns a Lazy that evaluates expression when it is forced.

Attributes

Source
Lazy.scala
def collectAll[A](values: IndexedSeq[Lazy[A]]): Lazy[IndexedSeq[A]]

Returns a Lazy of the results of values, in the same order. Forcing it runs the elements from the last one to the first.

Returns a Lazy of the results of values, in the same order. Forcing it runs the elements from the last one to the first.

Attributes

Source
Lazy.scala
def fail(throwable: Throwable): Lazy[Nothing]

Returns a Lazy that throws throwable when it is forced.

Returns a Lazy that throws throwable when it is forced.

Attributes

Source
Lazy.scala
def foreach[A, B](values: IndexedSeq[A])(f: A => Lazy[B]): Lazy[IndexedSeq[B]]

Applies f to each of values and collects the Lazy values it returns as collectAll does. f itself runs when foreach is called; the Lazy values it returns run when the result is forced.

Applies f to each of values and collects the Lazy values it returns as collectAll does. f itself runs when foreach is called; the Lazy values it returns run when the result is forced.

Attributes

Source
Lazy.scala