Higher-order functions for working with nested lists that reimplement various useful List module functions, but work on nested lists, preserving the original nesting strucutre when possible.
0 people like thisPosted: 8 days ago by Tomas Petricek
Uses StringBuilder to achieve performance.
0 people like thisPosted: 20 days ago by shazmodan
Pseudoword generator based on code from Evan Fosmark circa 2009.
0 people like thisPosted: 28 days ago by Phillip Trelford
Interactive computation that asks the user questions
9 people like thisPosted: 4 months ago by Tomas Petricek
Making QR-code image having contact information (VCard) with Google Chart API. If you scan this image with mobile phone, you can directly add new person to your contacts.
7 people like thisPosted: 4 months ago by Tuomas Hietanen
An example showing how to process list in a pipeline. We first use List.filter to return only even numbers and then use List.map to format them as strings.
4 people like thisPosted: 5 months ago by Tomas Petricek
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 thisPosted: 13 years ago by Novox
Strategy pattern in F#
83 people like thisPosted: 13 years ago by Tao Liu
This example shows how to load a Xaml file allowing to use WPF from F#. It also shows how to access WPF objects and register event handlers.
109 people like thisPosted: 13 years ago by Antonio Cisternino
A functional wrapper around the new WCF Web APIs (http://wcf.codeplex.com/). Composition is achieved through the use of the HttpRequestMessage -> Async
Posted: 13 years ago by Ryan Riley
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 thisPosted: 13 years ago by Phillip Trelford
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 thisPosted: 13 years ago by Dmitry Soshnikov
quotations (21) dsl (23) reflection (19) computation builder (17) regex (17) f# (43) silverlight (22) tutorial (17) staging (18) sequences (48) pattern matching (15) generic programming (17) string (28) seq (54) json (15) web (29) async (98) recursion (33) math (35) learning f# (16)
Brian Berns (9) Nick Palladinos (66) Eirik Tsarpalis (89) Robert Pickering (10) David Klein (16) Zhukoff Dima (8) Tuomas Hietanen (75) Tao Liu (17) Rick Minerich (15) Ankur Dhama (20) Samuel Bosch (12) devshorts (11) Taha Hachana (12) Fabio Galuppo (14) mavnn (17) Antonio Cisternino (8) Tomas Petricek (150) Evgeniy Andreev (13) Phillip Trelford (87) nagat01 (19)
Database contains 3196 snippets out of which 1712 is public.