Recent snippets

Popular snippets

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

    74 people like this

    Posted: 15 years ago by Rick Minerich

  • Top-Down-Operator-Precedence Parser

    F# implementation of a generic Top-Down-Operator-Precedence Parser as described in this paper http://portal.acm.org/citation.cfm?id=512931 Example starts at line ~300

    90 people like this

    Posted: 15 years ago by fholm

Snippets by tags

tryfsharp (48) json (16) quotations (21) wpf (20) dsl (23) string (29) mailboxprocessor (27) web (29) fold (22) computation expression (15) async (98) algorithms (25) sequence (32) lazy (20) regex (17) reflection (19) design patterns (18) computation builder (17) parsing (28) learning f# (16)

View all...

Database contains 3209 snippets out of which 1719 is public.