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.

    69 people like this

    Posted: 15 years ago by Phillip Trelford

  • Units of Measure

    Show's how to define units of measure to add stronger typing to your numerical functions.

    75 people like this

    Posted: 15 years ago by Robert Pickering

  • Command pattern for Redo-Undo II

    This command redo-undo implement group the command under Do/Undo category.

    71 people like this

    Posted: 14 years ago by Tao Liu

  • Chain of responsibility II

    Unlike the previous chain of responsibility, this version use the pipeline to chain responsibilities.

    105 people like this

    Posted: 14 years ago by Tao Liu

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

    85 people like this

    Posted: 15 years ago by Tomas Petricek

  • Continuation-Passing Mnemonics

    Continuations provide a means whereby heap space can be traded for stack depth (heap space being generally more plentiful than stack depth). They are especially useful where tail recursion is not possible. Here are a couple of simple continuation examples that can be extended to cover more complex scenarios.

    100 people like this

    Posted: 15 years ago by Neil Carrier

Snippets by tags

lazy (20) algorithms (25) async (98) kata (17) pattern matching (15) monad (24) seq (54) game (32) design patterns (18) reflection (19) string (29) mailboxprocessor (27) quotations (21) math (35) parsing (28) fold (22) http (18) sequence (32) agent (20) generic programming (17)

View all...

Database contains 3208 snippets out of which 1719 is public.