Recent snippets

Popular snippets

  • Dynamic operator using Reflection

    Demonstrates how to implement the dynamic operator (?) using .NET Reflection. The implementation supports calling constructors, propreties and methods using simple overload resolution (based on parameter count). It handles instance as well as static members.

    74 people like this

    Posted: 14 years ago by Tomas Petricek

  • Filtering lists

    Two functions showing how to filter functional lists using the specified predicate. First version uses naive recursion and the second one is tail-recursive using the accumulator parameter.

    77 people like this

    Posted: 15 years ago by Tomas Petricek

  • 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

Snippets by tags

kata (17) math (35) collections (16) sequences (48) f# (43) staging (18) lists (15) tryfsharp (48) wpf (20) fold (22) recursion (33) algorithms (25) parsing (28) reflection (19) computation builder (17) mailboxprocessor (27) learning f# (16) sequence (32) seq (54) list (56)

View all...

Database contains 3208 snippets out of which 1719 is public.