F# Snippets

Recently added snippets

Popular snippets

  • Monadic Memoization

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

    75 people like this
    Posted: 3 years ago by Nick Palladinos

  • Load XAML

    This example shows how to load a Xaml file allowing to use WPF from F#. It also shows how to access WPF objects and register event handlers.

    94 people like this
    Posted: 3 years ago by Antonio Cisternino

  • FSX Structure

    I use this basic template when writing .fsx files that I might want to compile. It adjusts the difference in command line/entrypoint handling between a script and a compiled assembly. This example shows the details for a WPF script — replace the #r's and/or remove the STAThread for a WinForms or Console script.

    94 people like this
    Posted: 3 years ago by Blake Coverett

Snippets by tags

DSL (20) fold (13) tryfsharp (40) Design Patterns (18) list (39) MailboxProcessor (20) Async (64) Sequence (28) Seq (42) game (22) math (28) computation builder (13) lists (12) reflection (18) web (15) WPF (15) lazy (17) Kata (16) tutorial (15) SilverLight (21) string (14) recursion (23) Learning F# (15) Algorithms (21) parsing (20) agent (16) monad (18) Collections (12) F# (33) sequences (43)
View all..

Snippets by authors

View all..

Database contains 1438 snippets out of which 1085 are public.