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

  • Read only ref

    F# implementation of RO_ref from the "Effective ML" talk.

    93 people like this

    Posted: 15 years ago by fholm

  • Factory Pattern

    Factory pattern in F#

    82 people like this

    Posted: 14 years ago by Tao Liu

  • Factory Pattern

    Factory pattern in F#

    82 people like this

    Posted: 14 years ago by Tao Liu

  • Asynchronous sequences

    An asynchronous sequence is similar to the seq type, but the elements of the sequence are generated asynchronously without blocking the caller as in Async. This snippet declares asynchronous sequence and uses it to compare two files in 1k blocks.

    109 people like this

    Posted: 15 years ago by Tomas Petricek

  • Composing a list of functions

    Composition of functions in F# is easily achieved by using the >> operator. You can also chain an arbitary amount of functions (represented as a list or sequence) together by folding the list/seq with >>. [More formally: the set of endomorphisms 'a -> 'a forms a monoid with the binary, associative operator ">>" (or "<<") and the neutral element "id".]

    87 people like this

    Posted: 15 years ago by Novox

Snippets by tags

seq (54) wpf (20) f# (43) quotations (21) regex (17) computation builder (17) parsing (28) fold (22) mailboxprocessor (27) lazy (20) silverlight (22) agent (20) recursion (33) list (56) http (18) math (35) web (29) tryfsharp (48) game (32) reflection (19)

View all...

Database contains 3208 snippets out of which 1719 is public.