Recent snippets

Popular snippets

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

    83 people like this

    Posted: 5 years ago by Tao Liu

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

    63 people like this

    Posted: 6 years ago by Tomas Petricek

  • Chain of responsibility II

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

    97 people like this

    Posted: 5 years ago by Tao Liu

Snippets by tags

dsl (22) string (17) lists (13) xml (12) list (49) async (91) seq (48) f# (42) wpf (17) computation builder (13) web (23) fparsec (14) array (18) html (14) learning f# (16) monad (20) sequence (29) game (30) tryfsharp (48) quotations (17)

View all...

Database contains 2053 snippets out of which 1440 is public.