Recent snippets

Popular snippets

  • Association list lookup

    While prototyping programs I find myself using association lists. This little snippet defines a lookup functions for association lists defined as lists of tuples.

    68 people like this

    Posted: 5 years ago by Alex Muscar

  • Filtering lists

    Two functions showing how to filter functional lists using the specified predicate. First version uses naive recursion and the second one is tail-recursive using the accumulator parameter.

    62 people like this

    Posted: 5 years ago by Tomas Petricek

  • Active pattern for let binding inside patterns

    The Let active pattern demonstrated by this snippet can be used to assign values to symbols in pattern matching. This is useful for writing complex pattern matching using match as we can handle multiple cases using a single clause.

    64 people like this

    Posted: 5 years ago by Tomas Petricek

Snippets by tags

MailboxProcessor (15) Async (16) factorial (9) pattern matching (11) agent (17) sequence (19) parsing (17) Kata (12) tryfsharp (48) Design Patterns (18) asynchronous (9) quotations (12) recursion (18) async (70) list (31) dsl (13) lists (10) WPF (15) F# (36) sequences (22)

View all...

Database contains 1975 snippets out of which 1329 is public.