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: 1 hour ago by amieres
High-performance JSON parsing with System.Text.Json and F#
1 people like thisPosted: 21 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
Get Stock Quote Data and Historical Stock Prices from Yahoo Finance.
236 people like thisPosted: 12 years ago by Tuomas Hietanen
Invoke the methods from incompatible types
109 people like thisPosted: 12 years ago by Tao Liu
We start with an initial value and then applying f repeatedly, until the value does not change anymore.
301 people like thisPosted: 12 years ago by Nick Palladinos
Get Stock Quote Data and Historical Stock Prices from Yahoo Finance.
236 people like thisPosted: 12 years ago by Tuomas Hietanen
Unlike the previous chain of responsibility, this version use the pipeline to chain responsibilities.
103 people like thisPosted: 12 years ago by Tao Liu
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
parsing (28) tryfsharp (48) json (15) agent (20) wpf (20) regex (17) design patterns (18) pattern matching (15) lists (14) computation builder (16) sequence (32) fold (22) kata (17) lazy (20) async (98) staging (18) collections (16) tutorial (17) algorithms (25) web (29)
Rick Minerich (15) devshorts (11) Brian Berns (9) Nick Palladinos (66) Tomas Petricek (148) NIck Palladinos (14) Robert Pickering (10) Tao Liu (17) Joel Huang (13) Taha Hachana (12) Ankur Dhama (20) Faisal Waris (37) Evgeniy Andreev (13) Cesar Mendoza (17) Ryan Riley (25) Kit Eason (51) Zhukoff Dima (8) Tuomas Hietanen (75) Antonio Cisternino (8) Vesa Karvonen (8)
Database contains 3167 snippets out of which 1706 is public.