Recent snippets

Popular snippets

  • Factory Pattern

    Factory pattern in F#

    81 people like this

    Posted: 14 years ago by Tao Liu

  • 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

  • Filtering lists

    Two functions showing how to filter functional lists using the specified predicate. First version uses naive recursion and the second one is tail-recursive using the accumulator parameter.

    77 people like this

    Posted: 15 years ago by Tomas Petricek

Snippets by tags

http (18) string (29) generic programming (17) computation expression (15) reflection (19) silverlight (22) sequence (32) learning f# (16) math (35) dsl (23) recursion (33) pattern matching (15) agent (20) lists (15) tryfsharp (48) algorithms (26) mailboxprocessor (27) f# (43) seq (54) wpf (20)

View all...

Database contains 3207 snippets out of which 1719 is public.