Recent snippets

Popular snippets

  • Continuation-Passing Mnemonics

    Continuations provide a means whereby heap space can be traded for stack depth (heap space being generally more plentiful than stack depth). They are especially useful where tail recursion is not possible. Here are a couple of simple continuation examples that can be extended to cover more complex scenarios.

    100 people like this

    Posted: 15 years ago by Neil Carrier

  • 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

  • Split a list

    Three ways to split a list in half (but not necessarily in the middle). A forth version added that's very short and should be fast, as we only use List.fold. New champ found.

    84 people like this

    Posted: 15 years ago by Dmitri Pavlenkov

Snippets by tags

pattern matching (15) sequence (32) computation expression (15) async (98) kata (17) http (18) quotations (21) generic programming (17) tryfsharp (48) json (16) collections (16) math (35) dsl (23) recursion (33) f# (43) reflection (19) lists (15) list (56) string (29) silverlight (22)

View all...

Database contains 3208 snippets out of which 1719 is public.