Snippets tagged computation builder

  • Disposable computation builder

    Computation builder that provides easy way of constructing IDisposable objects. It supports elegant composition of disposable objects using 'do!' which can be used for example when working with 'IObservable' type.

    27 people like this
    Posted: 1 years ago by Tomas Petricek

  • Enumerator computation builder

    The snippet defines computation builder for working with IEnumerator. The bind operation (let!) reads next element from the enumerator, so the computation can be used for expressing things that cannot be written just using seq.

    25 people like this
    Posted: 1 years ago by Tomas Petricek

  • Imperative computation builder

    Defines an F# computation builder for encoding imperative computations. The 'return' construct returns immediately and terminates the rest of the computation. It is also possible to return value from a 'for' or 'while' loop.

    6 people like this
    Posted: 1 years ago by Tomas Petricek

  • Computation Builder for Cartesian Products

    Sample framework for computing Cartesian products using a computation builder.

    7 people like this
    Posted: 1 years ago by TechNeilogy

  • LazyBuilder

    I made LazyBuilder. The synthesis of the lazy function is troublesome. When the call of the Force() method increases, it is ugly. This solves the problem.

    8 people like this
    Posted: 10 months ago by zecl

  • Tiny IO Monad

    Haskell-style IO in F#.

    6 people like this
    Posted: 10 months ago by igeta