Recent snippets

Popular snippets

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

    83 people like this

    Posted: 13 years ago by Novox

  • Struct Tuple

    Two/Three/Four-element generic tuples implemented as a value types for writing more efficient F# code.

    75 people like this

    Posted: 13 years ago by fholm

  • Minimal XML DSL

    This snippet provides a very small internal DSL for creating and querying XML using the underlying XLinq classes.

    373 people like this

    Posted: 13 years ago by Blake Coverett

  • ObservableObject

    The ObservableObject type implements the INotifyPropertyChanged interface used in WPF and Silverlight to notify on changes to properties that are bound to a control. Specify property names type safely using F# Quotations, i.e. <@ this.PropertyName @> when invoking the NotifyPropertyChanged method. If you are following the MVVM pattern then your View Model class can inherit from the ObservableObject type.

    62 people like this

    Posted: 13 years ago by Phillip Trelford

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

    183 people like this

    Posted: 13 years ago by Tomas Petricek

  • Exploring Population Data

    Learn Key Principle of F# in just a few minutes with the following Sample of "World Bank Type Provider - Exploring Population Data"

    381 people like this

    Posted: 10 years ago by Muhammad Mugees Asif

Snippets by tags

mailboxprocessor (27) design patterns (18) silverlight (22) lazy (20) computation builder (17) sequences (48) tryfsharp (48) dsl (23) parsing (28) algorithms (25) quotations (21) list (56) agent (20) f# (43) regex (17) json (15) html (15) monad (23) seq (54) kata (17)

View all...

Database contains 3181 snippets out of which 1708 is public.