Recent snippets

Popular snippets

  • NUnit Sugar

    Some simple functions for writing more idiomatic F# tests with NUnit.

    91 people like this

    Posted: 15 years ago by Ryan Riley

  • Hello world (F#)

    Classical "Hello world" example that prints a message to the console output. This version uses F# printfn function to do the printing.

    186 people like this

    Posted: 15 years ago by Tomas Petricek

  • Composing a list of functions

    Composition of functions in F# is easily achieved by using the >> operator. You can also chain an arbitary amount of functions (represented as a list or sequence) together by folding the list/seq with >>. [More formally: the set of endomorphisms 'a -> 'a forms a monoid with the binary, associative operator ">>" (or "<<") and the neutral element "id".]

    87 people like this

    Posted: 15 years ago by Novox

Snippets by tags

learning f# (16) string (29) sequence (32) wpf (20) reflection (19) http (18) computation expression (15) quotations (21) computation builder (17) recursion (33) pattern matching (15) dsl (23) html (16) async (98) parsing (28) silverlight (22) mailboxprocessor (27) seq (54) math (35) collections (16)

View all...

Database contains 3212 snippets out of which 1719 is public.