F# Snippets

Recently added snippets

Popular snippets

  • Continuation-Passing Mnemonics

    Continuations provide a means whereby heap space can be traded for stack depth (heap space being generally more plentiful than stack depth). They are especially useful where tail recursion is not possible. Here are a couple of simple continuation examples that can be extended to cover more complex scenarios.

    72 people like this
    Posted: 2 years ago by Neil Carrier

  • Pipeline list processing

    An example showing how to process list in a pipeline. We first use List.filter to return only even numbers and then use List.map to format them as strings.

    80 people like this
    Posted: 2 years ago by Tomas Petricek

  • Read only ref

    F# implementation of RO_ref from the "Effective ML" talk.

    78 people like this
    Posted: 2 years ago by fholm

  • Adapter pattern

    Invoke the methods from incompatible types

    88 people like this
    Posted: 1 years ago by Tao Liu

  • Haskell function : iterate

    Implements iterate function from Haskell's Prelude. The function generates an infinite sequence by applying a function to the initial value (first) and then to the result of previous application.

    135 people like this
    Posted: 2 years ago by Nick Palladinos

  • Strategy pattern

    Strategy pattern in F#

    68 people like this
    Posted: 1 years ago by Tao Liu

Snippets by tags

fold (10) Design Patterns (14) recursion (18) async (58) WPF (15) F# (28) computation builder (12) lists (12) web (12) parsing (10) Algorithms (19) learning F# (10) seq (37) lazy (16) monad (15) Collections (10) MailboxProcessor (15) DSL (19) tutorial (15) Ninety-Nine F# Problems (11) game (17) sequences (37) Sequence (23) SilverLight (21) Math (22) list (33) Kata (11) agent (14) reflection (16) tryfsharp (27)
View all..

Snippets by authors

View all..

Database contains 1109 snippets out of which 838 are public.