Recent snippets

Popular snippets

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

    67 people like this

    Posted: 14 years ago by Phillip Trelford

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

    74 people like this

    Posted: 14 years ago by Tomas Petricek

  • Creating objects with events

    This snippet shows how to create objects with events in F#. It shows both simple event (to be used from F#) and a .NET compatible event with specific delegate type.

    84 people like this

    Posted: 14 years ago by Tomas Petricek

Snippets by tags

dsl (23) math (35) tutorial (17) sequences (48) generic programming (17) json (16) learning f# (16) monad (24) game (32) staging (18) wpf (20) list (56) sequence (32) algorithms (26) computation builder (17) web (29) parsing (28) mailboxprocessor (27) lazy (20) http (18)

View all...

Database contains 3205 snippets out of which 1719 is public.