FSharpPlus


Lazy Module

Additional operations on Lazy - delayed computations

Functions and values

Function or value Description

Lazy.apply f x

Full Usage: Lazy.apply f x

Parameters:
    f : Lazy<('T -> 'U)> - The Lazy function.
    x : Lazy<'T> - The Lazy value.

Returns: Lazy<'U> A Lazy value of the function applied to the value.

Applies a Lazy value to a Lazy function.

f : Lazy<('T -> 'U)>

The Lazy function.

x : Lazy<'T>

The Lazy value.

Returns: Lazy<'U>

A Lazy value of the function applied to the value.

Lazy.map mapping x

Full Usage: Lazy.map mapping x

Parameters:
    mapping : 'T -> 'U - The mapping function.
    x : Lazy<'T> - The Lazy value.

Returns: Lazy<'U> The mappeed value.

Creates a Lazy value from another Lazy value, mapping through a function.

mapping : 'T -> 'U

The mapping function.

x : Lazy<'T>

The Lazy value.

Returns: Lazy<'U>

The mappeed value.

Lazy.map2 mapping x y

Full Usage: Lazy.map2 mapping x y

Parameters:
    mapping : 'T -> 'U -> 'V - The mapping function.
    x : Lazy<'T> - The first Lazy value.
    y : Lazy<'U> - The second Lazy value.

Returns: Lazy<'V> The combined value.

Creates a Lazy value from a pair of Lazy values, using a mapping function to combine them.

mapping : 'T -> 'U -> 'V

The mapping function.

x : Lazy<'T>

The first Lazy value.

y : Lazy<'U>

The second Lazy value.

Returns: Lazy<'V>

The combined value.

Lazy.map3 mapping x y z

Full Usage: Lazy.map3 mapping x y z

Parameters:
    mapping : 'T -> 'U -> 'V -> 'W - The mapping function.
    x : Lazy<'T> - The first Lazy value.
    y : Lazy<'U> - The second Lazy value.
    z : Lazy<'V> - The third Lazy value.

Returns: Lazy<'W> The combined value.

Creates a Lazy value from three Lazy values, using a function to combine them.

mapping : 'T -> 'U -> 'V -> 'W

The mapping function.

x : Lazy<'T>

The first Lazy value.

y : Lazy<'U>

The second Lazy value.

z : Lazy<'V>

The third Lazy value.

Returns: Lazy<'W>

The combined value.