Recent snippets

Popular snippets

  • Chain of responsibility

    The following sample wants to make sure the person’s age is between 18 and 65, weight is no more than 200 and tall enough (>120).

    75 people like this

    Posted: 5 years ago by Tao Liu

  • 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: 6 years ago by Nick Palladinos

  • 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

Snippets by tags

kata (17) sequences (46) reflection (18) algorithms (25) html (14) option (12) pattern matching (12) sequence (29) list (48) computation builder (13) string (17) recursion (26) parsing (22) agent (20) quotations (16) lists (13) lazy (18) tutorial (16) silverlight (21) tryfsharp (48)

View all...

Database contains 2024 snippets out of which 1427 is public.