Recent snippets

Popular snippets

  • Wicked way to solve quadratic equation using list of operators

    This is to demonstrate that: (1) there are many ways to solve the same problems; (2) operators can be grouped together into data structures and act as data; (3) you can have fun in F# in many ways.

    57 people like this

    Posted: 15 years ago by Dmitry Soshnikov

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

    75 people like this

    Posted: 15 years ago by Tomas Petricek

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

    69 people like this

    Posted: 15 years ago by Phillip Trelford

Snippets by tags

dsl (23) async (98) monad (24) agent (20) quotations (21) regex (17) lazy (20) tryfsharp (48) silverlight (22) kata (17) http (18) string (29) computation builder (17) learning f# (16) fold (22) sequence (32) algorithms (25) computation expression (15) html (16) math (35)

View all...

Database contains 3208 snippets out of which 1719 is public.