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

  • A beautiful fixed-point finding function

    We start with an initial value and then applying f repeatedly, until the value does not change anymore.

    302 people like this

    Posted: 15 years ago by Nick Palladinos

Snippets by tags

seq (54) pattern matching (15) recursion (33) json (16) fold (22) html (16) learning f# (16) lists (15) http (18) parsing (28) tryfsharp (48) lazy (20) computation builder (17) staging (18) array (22) generic programming (17) web (29) silverlight (22) monad (24) computation expression (15)

View all...

Database contains 3208 snippets out of which 1719 is public.