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.
0 people like thisPosted: 22 hours ago by amieres
High-performance JSON parsing with System.Text.Json and F#
1 people like thisPosted: 22 days ago by Tuomas Hietanen
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.
2 people like thisPosted: 2 months ago by Tuomas Hietanen
Creates a valid random machine key to place in your web.config or machine.config file. Useful when using multiple web servers where each web server needs the same machine key for encryption/validation.
1 people like thisPosted: 3 months ago by Russ Cam
Demonstrates how to use unfold to create a sequence of fibonacci numbers
0 people like thisPosted: 3 months ago by Dave Yost
The snippet extends a web crawler from snippet http://fssnip.net/3K. It synchronizes all printing using an additional agent (so printed text does not interleave) and the crawling function returns an asynchronous workflow that returns when crawling completes.
0 people like thisPosted: 4 months ago by Tomas Petricek
This command redo-undo implement group the command under Do/Undo category.
67 people like thisPosted: 12 years ago by Tao Liu
Two/Three/Four-element generic tuples implemented as a value types for writing more efficient F# code.
63 people like thisPosted: 12 years ago by fholm
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: 12 years ago by Nick Palladinos
The const function is simple, but you can use it to make your code more legible. In this example we convert a unary function to a function of arity 2 (that ignores the second argument). Also by using the flip function from Haskell (which is equally easy to define) you can ignore the first argument.
119 people like thisPosted: 12 years ago by Alex Muscar
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.
80 people like thisPosted: 12 years ago by Dmitri Pavlenkov
An asynchronous sequence is similar to the seq
Posted: 12 years ago by Tomas Petricek
learning f# (16) computation builder (16) regex (17) array (22) agent (20) lists (14) dsl (23) f# (43) algorithms (25) sequences (48) staging (18) design patterns (18) wpf (20) fparsec (15) reflection (19) http (18) tutorial (17) monad (23) lazy (20) game (32)
Joel Huang (13) Samuel Bosch (12) Vesa Karvonen (8) Taha Hachana (12) devshorts (11) Kit Eason (51) fholm (26) Carsten König (10) Nick Palladinos (66) Fabio Galuppo (14) mavnn (17) Tomas Petricek (148) Zhukoff Dima (8) Robert Pickering (10) Eirik Tsarpalis (89) nagat01 (19) Ryan Riley (25) David Klein (16) Tao Liu (17) Ankur Dhama (20)
Database contains 3168 snippets out of which 1706 is public.