Uses StringBuilder to achieve performance.
0 people like thisPosted: 6 days ago by shazmodan
Pseudoword generator based on code from Evan Fosmark circa 2009.
0 people like thisPosted: 14 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
This module implements a generic union-find data structure (from https://gist.github.com/vanaur/bea2b0ea57b58140b9c1d39a9b02e998).
6 people like thisPosted: 6 months ago by vanaur
Three functions showing how to implement projection for functional lists. First version uses naive recursion and the second one is tail-recursive using the accumulator parameter. The third version extends this with continuation passing.
73 people like thisPosted: 13 years ago by Tomas Petricek
This function is given a partition predicate and a sequence. Until the predicate returns false, a list will be filled with elements. When it is, both the list and the remainder of the sequence will be returned. Note that this example preserves the laziness of the unchecked sequence elements.
69 people like thisPosted: 13 years ago by Rick Minerich
Implements iterate function from Haskell's Prelude. The function generates an infinite sequence by applying a function to the initial value (first) and then to the result of previous application.
203 people like thisPosted: 13 years ago by Nick Palladinos
While prototyping programs I find myself using association lists. This little snippet defines a lookup functions for association lists defined as lists of tuples.
68 people like thisPosted: 13 years ago by Alex Muscar
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
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
fold (22) monad (24) seq (54) computation expression (15) recursion (33) web (29) silverlight (22) algorithms (26) fparsec (15) lazy (20) kata (17) sequences (48) parsing (28) reflection (19) agent (20) tryfsharp (48) http (18) html (16) collections (16) regex (17)
Antonio Cisternino (8) Eirik Tsarpalis (89) Cesar Mendoza (17) Joel Huang (13) Phillip Trelford (87) fholm (26) Rick Minerich (15) Ryan Riley (25) Ankur Dhama (20) Kit Eason (51) Robert Pickering (10) Fabio Galuppo (14) Evgeniy Andreev (13) Tomas Petricek (149) David Klein (16) nagat01 (19) mavnn (17) Gauthier Segay (11) NIck Palladinos (14) Taha Hachana (12)
Database contains 3195 snippets out of which 1711 is public.