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
Here is an improved version twice shorter, than original
72 people like thisPosted: 13 years ago by Nick Canzoneri
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
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
I use this basic template when writing .fsx files that I might want to compile. It adjusts the difference in command line/entrypoint handling between a script and a compiled assembly. This example shows the details for a WPF script — replace the #r's and/or remove the STAThread for a WinForms or Console script.
124 people like thisPosted: 13 years ago by Blake Coverett
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
design patterns (18) pattern matching (15) kata (17) sequence (32) wpf (20) regex (17) monad (24) html (16) seq (54) array (22) algorithms (26) async (98) list (56) web (29) staging (18) lazy (20) fold (22) f# (43) generic programming (17) computation builder (17)
Evgeniy Andreev (13) Zhukoff Dima (8) NIck Palladinos (14) Eirik Tsarpalis (89) Tao Liu (17) Taha Hachana (12) Samuel Bosch (12) Joel Huang (13) Nick Palladinos (66) Gauthier Segay (11) Antonio Cisternino (8) Tomas Petricek (150) Brian Berns (9) mavnn (17) Fabio Galuppo (14) fholm (26) Carsten König (10) Ankur Dhama (20) Kit Eason (51) Robert Pickering (10)
Database contains 3196 snippets out of which 1712 is public.