This module implements a generic union-find data structure (from https://gist.github.com/vanaur/bea2b0ea57b58140b9c1d39a9b02e998).
2 people like thisPosted: 14 days ago by vanaur
76a9142220867b1e79c403fafe339a809a65ed01cb697988ac
0 people like thisPosted: 1 month ago by The streets
Stubbed methods for a computation expression with some explanations
4 people like thisPosted: 2 months ago by Jimmy Byrd
A function that will take a sequence of directory names and return a sequence of all file names within.
4 people like thisPosted: 2 months ago by Shankar Velayudhan
The example uses Seq.splitBy and Seq.tryHeadTail twice to split the input file in two and then into several pieces collecting the output file names in the first section and the content in the subsequent pieces It can efficiently split a huge 2.2GB file into several subfiles without having to rescan the file or cache in memory any portions of the file apart from the current line.
5 people like thisPosted: 4 months ago by amieres
High-performance JSON parsing with System.Text.Json and F#
1 people like thisPosted: 5 months ago by Tuomas Hietanen
Some simple functions for writing more idiomatic F# tests with NUnit.
90 people like thisPosted: 13 years ago by Ryan Riley
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 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
Factory pattern in F#
79 people like thisPosted: 12 years ago by Tao Liu
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.
89 people like thisPosted: 12 years ago by Tao Liu
Two functions showing how to filter functional lists using the specified predicate. First version uses naive recursion and the second one is tail-recursive using the accumulator parameter.
75 people like thisPosted: 13 years ago by Tomas Petricek
fparsec (15) recursion (33) game (32) monad (23) reflection (19) fold (22) array (22) dsl (23) string (27) pattern matching (15) algorithms (26) kata (17) http (18) json (15) regex (17) computation builder (17) tryfsharp (48) f# (43) learning f# (16) sequences (48)
Phillip Trelford (87) Faisal Waris (37) Brian Berns (9) Evgeniy Andreev (13) Gauthier Segay (11) Ryan Riley (25) Vesa Karvonen (8) Tuomas Hietanen (75) Rick Minerich (15) devshorts (11) Tomas Petricek (148) Nick Palladinos (66) Samuel Bosch (12) Eirik Tsarpalis (89) Cesar Mendoza (17) Fabio Galuppo (14) Zhukoff Dima (8) mavnn (17) Robert Pickering (10) Ankur Dhama (20)
Database contains 3183 snippets out of which 1709 is public.