Recent snippets

Popular snippets

  • Units of Measure

    Show's how to define units of measure to add stronger typing to your numerical functions.

    75 people like this

    Posted: 15 years ago by Robert Pickering

  • The Haskell const function

    The const function is simple, but you can use it to make your code more legible. In this example we convert a unary function to a function of arity 2 (that ignores the second argument). Also by using the flip function from Haskell (which is equally easy to define) you can ignore the first argument.

    119 people like this

    Posted: 14 years ago by Alex Muscar

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

    109 people like this

    Posted: 15 years ago by Antonio Cisternino

Snippets by tags

generic programming (17) reflection (19) math (35) computation builder (17) sequence (32) kata (17) staging (18) recursion (33) html (16) monad (24) sequences (48) pattern matching (15) f# (43) computation expression (15) tutorial (17) json (16) game (32) regex (17) parsing (28) async (98)

View all...

Database contains 3206 snippets out of which 1719 is public.