Recent snippets

Popular snippets

  • Factory Pattern

    Factory pattern in F#

    79 people like this

    Posted: 12 years ago by Tao Liu

  • WPF / SilverLight Converter II

    version 1 is http://fssnip.net/62. This new version support convert from any existing function to a converter function by using composition and pipeline. The convert function is to make the function signature agree to the IValueConverter interface. You can add new functions in the FunctionLibrary module and reuse the class definition to reduce the coding effort. The first sample is to show how to make the converter pipeline work, the second one is a debugger converter used to debug the data binding problem.

    89 people like this

    Posted: 12 years ago by Tao Liu

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

    75 people like this

    Posted: 13 years ago by Tomas Petricek

Snippets by tags

fparsec (15) recursion (33) game (32) monad (23) reflection (19) fold (22) array (22) dsl (23) string (27) pattern matching (15) algorithms (26) kata (17) http (18) json (15) regex (17) computation builder (17) tryfsharp (48) f# (43) learning f# (16) sequences (48)

View all...

Database contains 3183 snippets out of which 1709 is public.