Uses StringBuilder to achieve performance.
0 people like thisPosted: 5 days ago by shazmodan
Pseudoword generator based on code from Evan Fosmark circa 2009.
0 people like thisPosted: 13 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
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.
84 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
version 1 is http://fssnip.net/62. This new version support convert from any existing function to a converter function by using composition and pipeline. The convert function is to make the function signature agree to the IValueConverter interface. You can add new functions in the FunctionLibrary module and reuse the class definition to reduce the coding effort. The first sample is to show how to make the converter pipeline work, the second one is a debugger converter used to debug the data binding problem.
90 people like thisPosted: 13 years ago by Tao Liu
Demonstrates how to implement the dynamic operator (?) using .NET Reflection. The implementation supports calling constructors, propreties and methods using simple overload resolution (based on parameter count). It handles instance as well as static members.
71 people like thisPosted: 13 years ago by Tomas Petricek
Three ways to split a list in half (but not necessarily in the middle). A forth version added that's very short and should be fast, as we only use List.fold. New champ found.
83 people like thisPosted: 13 years ago by Dmitri Pavlenkov
Invoke the methods from incompatible types
110 people like thisPosted: 13 years ago by Tao Liu
generic programming (17) seq (54) game (32) tryfsharp (48) agent (20) silverlight (22) reflection (19) design patterns (18) pattern matching (15) computation builder (17) parsing (28) http (18) kata (17) sequences (48) computation expression (15) fold (22) mailboxprocessor (27) dsl (23) algorithms (26) math (35)
Nick Palladinos (66) Tao Liu (17) Samuel Bosch (12) Phillip Trelford (87) Eirik Tsarpalis (89) Taha Hachana (12) fholm (26) Cesar Mendoza (17) David Klein (16) devshorts (11) Faisal Waris (37) Tomas Petricek (149) Brian Berns (9) Vesa Karvonen (8) Joel Huang (13) Ryan Riley (25) Carsten König (10) Zhukoff Dima (8) nagat01 (19) Evgeniy Andreev (13)
Database contains 3195 snippets out of which 1711 is public.