F# Snippets

Recently added snippets

  • backup files

    backup files , construct directory structure and then copy them one by one, ignore some sub directory in ignore list

    Posted: 8 days ago by rigid wang

  • Count leading zeros

    Several ways of counting leading zeros in a binary number.

    Posted: 15 days ago by Bjørn Bæverfjord

  • Reducers

    A simple yet powerful library for parallel collection processing. Inspired by Clojure's Reducers.

    Posted: 17 days ago by Nick Palladinos

Popular snippets

  • Strategy pattern

    Strategy pattern in F#

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

  • Monadic Memoization

    Modular memoization within a pure functional setting that is implemented as a convenient computation builder.

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

  • 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

  • Read only ref

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

    78 people like this
    Posted: 2 years ago by fholm

  • Chain of responsibility II

    Unlike the previous chain of responsibility, this version use the pipeline to chain responsibilities.

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

  • Chain of responsibility

    The following sample wants to make sure the person’s age is between 18 and 65, weight is no more than 200 and tall enough (>120).

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

Snippets by tags

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

Snippets by authors

View all..

Database contains 1110 snippets out of which 839 are public.