Recent snippets

Popular snippets

  • The Haskell const function

    The const function is simple, but you can use it to make your code more legible. In this example we convert a unary function to a function of arity 2 (that ignores the second argument). Also by using the flip function from Haskell (which is equally easy to define) you can ignore the first argument.

    119 people like this

    Posted: 15 years ago by Alex Muscar

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

    73 people like this

    Posted: 14 years ago by Tomas Petricek

  • Command pattern for Redo-Undo II

    This command redo-undo implement group the command under Do/Undo category.

    70 people like this

    Posted: 14 years ago by Tao Liu

Snippets by tags

tutorial (17) monad (24) recursion (33) web (29) f# (43) list (56) sequence (32) quotations (21) async (98) collections (16) html (16) game (32) http (18) agent (20) generic programming (17) dsl (23) regex (17) design patterns (18) learning f# (16) kata (17)

View all...

Database contains 3207 snippets out of which 1719 is public.