F# Snippets

Recently added snippets

  • APL mode for F#

    Inspired by @theburningmonk, this snippet defines a couple of extensions and operators that can be used to make F# as short and as obscure as APL. Complete with a 19 character solution of the Euler problem #1!

    Posted: 5 days ago by Tomas Petricek

  • Fibonacci sequence with fold

    Fibonacci sequence with fold

    Posted: 9 days ago by Andriy Tolstoy

  • Vsync Computation Expression

    The 'Vsync' (AKA, 'Variable Synchronization') computation expression that coheres into the Sync comp. expr. when SYNC is #defined, and into the Async comp. expr. otherwise.

    Posted: 15 days ago by Bryan Edds

Popular snippets

  • NUnit Sugar

    Some simple functions for writing more idiomatic F# tests with NUnit.

    84 people like this
    Posted: 4 years ago by Ryan Riley

  • Minimal XML DSL

    This snippet provides a very small internal DSL for creating and querying XML using the underlying XLinq classes.

    345 people like this
    Posted: 4 years ago by Blake Coverett

  • get the list of LAN Sql servers

    get the list of ethernet sql servers

    85 people like this
    Posted: 4 years ago by nCdy

  • 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.

    84 people like this
    Posted: 4 years ago by Tomas Petricek

  • Monadic Memoization

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

    82 people like this
    Posted: 4 years ago by Nick Palladinos

  • Chain of responsibility II

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

    97 people like this
    Posted: 3 years ago by Tao Liu

Snippets by tags

string (16) fold (16) Sequence (28) sequences (44) reflection (18) monad (18) DSL (22) MailboxProcessor (22) quotations (14) parsing (22) tryfsharp (44) tutorial (15) Kata (16) game (29) Learning F# (15) lazy (17) Algorithms (23) computation builder (13) web (18) list (46) WPF (16) Collections (16) async (81) Design Patterns (18) f# (39) SilverLight (21) Seq (44) agent (19) math (29) recursion (24)
View all..

Snippets by authors

View all..

Database contains 1694 snippets out of which 1246 are public.