F# Snippets

Recently added snippets

  • tryNth

    Computes the nth value of a sequence if the nth value is past the length of the sequence then None is returned else some

    Posted: 4 days ago by Colin Bull

  • Traits, Mixins and Aspect-Oriented Programming in F#

    A compositional type system built using generics and monads in F#. It is only a very limited, _toy_ project exploring traits, mixins and aspect-oriented programming.

    Posted: 5 days ago by Zach Bray

  • Speech Stackoverflow article automatically

    This snippet automatically speeches text of question,answers and comments in a Stackoverflow article. It requires HtmlAgilityPack(available from Nuget package manager).(Attention: You need reset F# interactive to stop the speech)

    Posted: 7 days ago by nagat01

Popular snippets

  • Factory Pattern

    Factory pattern in F#

    57 people like this
    Posted: 9 months ago by Tao Liu

  • Minimal XML DSL

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

    230 people like this
    Posted: 1 years ago by Blake Coverett

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

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

  • WPF / SilverLight Converter II

    version 1 is http://fssnip.net/62. This new version support convert from any existing function to a converter function by using composition and pipeline. The convert function is to make the function signature agree to the IValueConverter interface. You can add new functions in the FunctionLibrary module and reuse the class definition to reduce the coding effort. The first sample is to show how to make the converter pipeline work, the second one is a debugger converter used to debug the data binding problem.

    74 people like this
    Posted: 8 months ago by Tao Liu

  • Command pattern for Redo-Undo II

    This command redo-undo implement group the command under Do/Undo category.

    58 people like this
    Posted: 8 months ago by Tao Liu

  • Monadic Memoization

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

    56 people like this
    Posted: 1 years ago by Nick Palladinos

Snippets by tags

SilverLight (18) WPF (15) asynchronous (8) parsing (10) reflection (10) list (24) string (9) Design Patterns (14) Recursion (15) Ninety-Nine F# Problems (11) learning F# (9) MailboxProcessor (12) monad (13) Game (8) active pattern (7) Sequence (19) web (11) F# (20) agent (11) Lists (11) tutorial (13) Seq (30) computation builder (11) async (44) math (13) collections (8) dsl (14) lazy (13) Algorithms (12) sequences (26)
View all..

Snippets by authors

View all..

Database contains 725 snippets out of which 573 are public.