LanguageExt.Core

LanguageExt.Core DataTypes Loop

Contents

record Loop <A> (A Value) Source #

Represents a value to use in tail-recursive loops. Usually understood to be the value t pass to the next stage of the loop so it can continue (and either generated by the previous loop-stage or is the initial trigger-value.

On its own this doesn't do much, but allows other types to convert from it and provide binding extensions that mean it can be lifted into other monads without specifying lots of extra generic arguments.

Parameters

type A

Bound value type

param Value

Bound value

Methods

method Loop<B> Map <B> (Func<A, B> f) Source #

Functor map

Parameters

type B

Result bound value type

param f

Mapping function

returns

Result of the applying the mapping function to the Pure value

method Next<A, B> ToNext <B> () Source #

Convert to a Next value

class LoopExtensions Source #

Operators

operator >> (Loop<A> px, Lower _) Source #

Value extraction

class Prelude Source #

Methods

method Loop<A> Loop <A> (A value) Source #