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.
1 people like thisPosted: 17 days ago by Tomas Petricek
Uses StringBuilder to achieve performance.
1 people like thisPosted: 28 days ago by shazmodan
Pseudoword generator based on code from Evan Fosmark circa 2009.
0 people like thisPosted: 1 month 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: 5 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
Here is an improved version twice shorter, than original
72 people like thisPosted: 13 years ago by Nick Canzoneri
Strategy pattern in F#
83 people like thisPosted: 13 years ago by Tao Liu
F# implementation of RO_ref from the "Effective ML" talk.
90 people like thisPosted: 13 years ago by fholm
Modular memoization within a pure functional setting that is implemented as a convenient computation builder.
91 people like thisPosted: 13 years ago by Nick Palladinos
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
collections (16) sequence (32) async (98) algorithms (26) lists (15) dsl (23) computation builder (17) pattern matching (15) recursion (33) wpf (20) parsing (28) list (56) regex (17) staging (18) web (29) seq (54) learning f# (16) tutorial (17) json (15) game (32)
Gauthier Segay (11) Tao Liu (17) Ryan Riley (25) nagat01 (19) Evgeniy Andreev (13) Kit Eason (51) Zhukoff Dima (8) David Klein (16) Taha Hachana (12) Antonio Cisternino (8) Carsten König (10) devshorts (11) Ankur Dhama (20) Brian Berns (9) Phillip Trelford (87) Rick Minerich (15) Samuel Bosch (12) Vesa Karvonen (8) Nick Palladinos (66) Robert Pickering (10)
Database contains 3196 snippets out of which 1712 is public.