FSharpx.Extras


EitherBuilder Type

Constructors

Constructor Description

EitherBuilder()

Full Usage: EitherBuilder()

Returns: EitherBuilder
Returns: EitherBuilder

Instance members

Instance member Description

this.Bind

Full Usage: this.Bind

Parameters:
Returns: Choice<'c, 'b>
m : Choice<'a, 'b>
f : 'a -> Choice<'c, 'b>
Returns: Choice<'c, 'b>

this.Delay

Full Usage: this.Delay

Parameters:
    f : 'a

Returns: 'a
f : 'a
Returns: 'a

this.For

Full Usage: this.For

Parameters:
    sequence : 'a seq
    body : 'a -> 'b

Returns: Choice<unit, 'c>
sequence : 'a seq
body : 'a -> 'b
Returns: Choice<unit, 'c>

this.Return

Full Usage: this.Return

Parameters:
    a : 'a

Returns: Choice<'a, 'b>
a : 'a
Returns: Choice<'a, 'b>

this.ReturnFrom

Full Usage: this.ReturnFrom

Parameters:
    m : 'a

Returns: 'a
m : 'a
Returns: 'a

this.Run

Full Usage: this.Run

Parameters:
    f : unit -> 'a

Returns: 'a
f : unit -> 'a
Returns: 'a

this.TryFinally

Full Usage: this.TryFinally

Parameters:
    m : 'a
    compensation : unit -> unit

Returns: 'a
m : 'a
compensation : unit -> unit
Returns: 'a

this.TryWith

Full Usage: this.TryWith

Parameters:
    m : 'a
    h : exn -> 'a

Returns: 'a
m : 'a
h : exn -> 'a
Returns: 'a

this.Using

Full Usage: this.Using

Parameters:
    res : 'a
    body : 'a -> 'b

Returns: 'b
res : 'a
body : 'a -> 'b
Returns: 'b

this.While

Full Usage: this.While

Parameters:
    guard : unit -> bool
    f : unit -> 'a

Returns: Choice<unit, 'b>
guard : unit -> bool
f : unit -> 'a
Returns: Choice<unit, 'b>

this.Zero

Full Usage: this.Zero

Returns: Choice<unit, 'a>
Returns: Choice<unit, 'a>