76a9142220867b1e79c403fafe339a809a65ed01cb697988ac
0 people like thisPosted: 9 days ago by The streets
Stubbed methods for a computation expression with some explanations
4 people like thisPosted: 1 month ago by Jimmy Byrd
A function that will take a sequence of directory names and return a sequence of all file names within.
3 people like thisPosted: 1 month 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: 3 months ago by amieres
High-performance JSON parsing with System.Text.Json and F#
1 people like thisPosted: 4 months 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.
8 people like thisPosted: 5 months ago by Tuomas Hietanen
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
Two/Three/Four-element generic tuples implemented as a value types for writing more efficient F# code.
75 people like thisPosted: 13 years ago by fholm
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.
122 people like thisPosted: 13 years ago by Blake Coverett
Strategy pattern in F#
80 people like thisPosted: 12 years ago by Tao Liu
This example shows how to load a Xaml file allowing to use WPF from F#. It also shows how to access WPF objects and register event handlers.
107 people like thisPosted: 13 years ago by Antonio Cisternino
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: 13 years ago by Dmitri Pavlenkov
Gauthier Segay (11) Carsten König (10) Rick Minerich (15) devshorts (11) Taha Hachana (12) Kit Eason (51) nagat01 (19) Tao Liu (17) Tuomas Hietanen (75) NIck Palladinos (14) Fabio Galuppo (14) Tomas Petricek (148) Zhukoff Dima (8) Ankur Dhama (20) mavnn (17) Vesa Karvonen (8) David Klein (16) Robert Pickering (10) Ryan Riley (25) Joel Huang (13)
Database contains 3181 snippets out of which 1708 is public.