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: 13 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.

    76 people like this

    Posted: 13 years ago by Tomas Petricek

  • 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: 13 years ago by Dmitry Soshnikov

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

    86 people like this

    Posted: 13 years ago by Novox

  • get the list of LAN Sql servers

    get the list of ethernet sql servers

    90 people like this

    Posted: 13 years ago by nCdy

  • Top-Down-Operator-Precedence Parser

    F# implementation of a generic Top-Down-Operator-Precedence Parser as described in this paper http://portal.acm.org/citation.cfm?id=512931 Example starts at line ~300

    88 people like this

    Posted: 13 years ago by fholm

Snippets by tags

parsing (28) silverlight (22) mailboxprocessor (27) html (16) array (22) tryfsharp (48) list (56) seq (54) algorithms (26) monad (24) agent (20) math (35) string (28) http (18) lists (15) regex (17) reflection (19) sequence (32) generic programming (17) async (98)

View all...

Database contains 3197 snippets out of which 1712 is public.