Recent snippets

  • Staged Reducer

    Fusion via reducer partial application, based on

    1 people like this

    Posted: 2 days ago by Nick Palladinos

  • Concurrent Memoization

    This is more generic variant of if you want to memoize over different functions / code paths that calls the same to-be-cached-code.

    0 people like this

    Posted: 3 days ago by Tuomas Hietanen

  • F# snippet formatting service

    Do you want to format F# snippets, but cannot easily run the F# Formatting library as part of your documentation processing? We just added F# Formatting as a service (FAAS!) API to the F# Snippets. This code snippet shows how to call the service.

    2 people like this

    Posted: 3 days ago by Tomas Petricek

Popular snippets

  • Project Euler #1

    This snippet is code that solves first Project Euler problem. It finds the sum of all the multiples of 3 or 5 below 1000. Please add other (more efficient, succinct or interesting) solutions to this snippet.

    71 people like this

    Posted: 5 years ago by Eugene Gavrin

  • 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: 5 years ago by Tomas Petricek

  • Read only ref

    F# implementation of RO_ref from the "Effective ML" talk.

    81 people like this

    Posted: 5 years ago by fholm

Snippets by tags

list (32) List (16) tutorial (16) fold (17) Silverlight (18) Sequence (10) lazy (10) dsl (13) Ninety-Nine F# Problems (11) async (73) Sequences (22) Design Patterns (18) quotations (13) reflection (14) parsing (17) agent (18) pattern matching (11) string (14) F# (36) lists (10)

View all...

Database contains 1953 snippets out of which 1396 is public.