Recent snippets

Popular snippets

  • Chain of responsibility II

    Unlike the previous chain of responsibility, this version use the pipeline to chain responsibilities.

    104 people like this

    Posted: 14 years ago by Tao Liu

  • Active pattern for let binding inside patterns

    The Let active pattern demonstrated by this snippet can be used to assign values to symbols in pattern matching. This is useful for writing complex pattern matching using match as we can handle multiple cases using a single clause.

    64 people like this

    Posted: 14 years ago by Tomas Petricek

  • Projecting lists

    Three functions showing how to implement projection for functional lists. First version uses naive recursion and the second one is tail-recursive using the accumulator parameter. The third version extends this with continuation passing.

    74 people like this

    Posted: 15 years ago by Tomas Petricek

Snippets by tags

array (22) tutorial (17) sequences (48) kata (17) async (98) regex (17) agent (20) computation builder (17) math (35) computation expression (15) pattern matching (15) staging (18) json (16) seq (54) sequence (32) wpf (20) recursion (33) collections (16) algorithms (26) monad (24)

View all...

Database contains 3207 snippets out of which 1719 is public.