Recent snippets

Popular snippets

  • 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: 14 years ago by Antonio Cisternino

  • Haskell function : iterate

    Implements iterate function from Haskell's Prelude. The function generates an infinite sequence by applying a function to the initial value (first) and then to the result of previous application.

    203 people like this

    Posted: 14 years ago by Nick Palladinos

  • Partition a sequence until a predicate is satiated

    This function is given a partition predicate and a sequence. Until the predicate returns false, a list will be filled with elements. When it is, both the list and the remainder of the sequence will be returned. Note that this example preserves the laziness of the unchecked sequence elements.

    69 people like this

    Posted: 14 years ago by Rick Minerich

Snippets by tags

monad (24) http (18) recursion (33) seq (54) computation expression (15) pattern matching (15) sequence (32) computation builder (17) silverlight (22) algorithms (26) tryfsharp (48) html (16) parsing (28) quotations (21) json (16) mailboxprocessor (27) sequences (48) wpf (20) fold (22) list (56)

View all...

Database contains 3205 snippets out of which 1719 is public.