FSharpx.Extras


ContinuationBuilder Type

Constructors

Constructor Description

ContinuationBuilder()

Full Usage: ContinuationBuilder()

Returns: ContinuationBuilder
Returns: ContinuationBuilder

Instance members

Instance member Description

this.Bind

Full Usage: this.Bind

Parameters:
    comp1 : Cont<'a, 'b>
    f : 'a -> Cont<'c, 'b>

Returns: ('c -> 'b) -> (exn -> 'b) -> 'b
comp1 : Cont<'a, 'b>
f : 'a -> Cont<'c, 'b>
Returns: ('c -> 'b) -> (exn -> 'b) -> 'b

this.Catch

Full Usage: this.Catch

Parameters:
    comp : Cont<'a, 'b>

Returns: Cont<Choice<'a, exn>, 'b>
comp : Cont<'a, 'b>
Returns: Cont<Choice<'a, exn>, 'b>

this.Combine

Full Usage: this.Combine

Parameters:
    comp1 : Cont<unit, 'a>
    comp2 : Cont<'b, 'a>

Returns: ('b -> 'a) -> (exn -> 'a) -> 'a
comp1 : Cont<unit, 'a>
comp2 : Cont<'b, 'a>
Returns: ('b -> 'a) -> (exn -> 'a) -> 'a

this.Delay

Full Usage: this.Delay

Parameters:
    f : unit -> Cont<'a, 'b>

Returns: ('a -> 'b) -> (exn -> 'b) -> 'b
f : unit -> Cont<'a, 'b>
Returns: ('a -> 'b) -> (exn -> 'b) -> 'b

this.For

Full Usage: this.For

Parameters:
    items : 'a seq
    body : 'a -> Cont<unit, 'b>

Returns: (unit -> 'b) -> (exn -> 'b) -> 'b
items : 'a seq
body : 'a -> Cont<unit, 'b>
Returns: (unit -> 'b) -> (exn -> 'b) -> 'b

this.Return

Full Usage: this.Return

Parameters:
    a : 'a

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

this.ReturnFrom

Full Usage: this.ReturnFrom

Parameters:
    comp : Cont<'a, 'b>

Returns: Cont<'a, 'b>
comp : Cont<'a, 'b>
Returns: Cont<'a, 'b>

this.TryFinally

Full Usage: this.TryFinally

Parameters:
    tryBlock : Cont<'a, 'b>
    finallyBlock : unit -> unit

Returns: ('a -> 'b) -> (exn -> 'b) -> 'b
tryBlock : Cont<'a, 'b>
finallyBlock : unit -> unit
Returns: ('a -> 'b) -> (exn -> 'b) -> 'b

this.TryWith

Full Usage: this.TryWith

Parameters:
    tryBlock : Cont<'a, 'b>
    catchBlock : exn -> Cont<'a, 'b>

Returns: ('a -> 'b) -> (exn -> 'b) -> 'b
tryBlock : Cont<'a, 'b>
catchBlock : exn -> Cont<'a, 'b>
Returns: ('a -> 'b) -> (exn -> 'b) -> 'b

this.Using

Full Usage: this.Using

Parameters:
    res : 'a
    body : 'a -> Cont<'b, 'c>

Returns: ('b -> 'c) -> (exn -> 'c) -> 'c
res : 'a
body : 'a -> Cont<'b, 'c>
Returns: ('b -> 'c) -> (exn -> 'c) -> 'c

this.While

Full Usage: this.While

Parameters:
    pred : unit -> bool
    body : Cont<unit, 'a>

Returns: (unit -> 'a) -> (exn -> 'a) -> 'a
pred : unit -> bool
body : Cont<unit, 'a>
Returns: (unit -> 'a) -> (exn -> 'a) -> 'a

this.Zero

Full Usage: this.Zero

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