76a9142220867b1e79c403fafe339a809a65ed01cb697988ac
0 people like thisPosted: 3 days ago by The streets
Compiles simple F# quoted expressions (literals, values, operators, ifs and for loops) to Java code.
1 people like thisPosted: 24 days ago by Phillip Trelford
Sort collection of items based on criteria of closest distance between consecutive items. The resulting collection first element is one of two farthest items, the end element is the second of the farthest pair. For the collection of `n` items the distance function is called n*(n-1) /2 times. The distance for pair of items is assumed to not depend on items order.
2 people like thisPosted: 25 days ago by Konstantin Sh
A variation of another snippet "Seq.groupWhen". This one groups adjacent elements based on a predicate that accepts two arguments - the previous and current elements
2 people like thisPosted: 2 months ago by Faisal Waris
Sample to estimate and visualize kernel densities of multiple distributions for visual comparison. Here the distributions of NY taxi fares are being compared by payment type (e.g. cash, credit card, etc.)
1 people like thisPosted: 2 months ago by Faisal Waris
Demonstrates how to use unfold to create an infinite list of the fibonacci numbers
1 people like thisPosted: 3 months ago by Dave Yost
Continuations provide a means whereby heap space can be traded for stack depth (heap space being generally more plentiful than stack depth). They are especially useful where tail recursion is not possible. Here are a couple of simple continuation examples that can be extended to cover more complex scenarios.
89 people like thisPosted: 12 years ago by Neil Carrier
F# implementation of a generic Top-Down-Operator-Precedence Parser as described in this paper http://portal.acm.org/citation.cfm?id=512931 Example starts at line ~300
87 people like thisPosted: 12 years ago by fholm
Factory pattern in F#
78 people like thisPosted: 11 years ago by Tao Liu
Strategy pattern in F#
80 people like thisPosted: 11 years ago by Tao Liu
F# implementation of RO_ref from the "Effective ML" talk.
86 people like thisPosted: 12 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: 12 years ago by Blake Coverett
f# (43) lists (14) agent (20) lazy (20) fold (22) design patterns (18) reflection (19) computation builder (16) sequence (32) quotations (21) collections (16) math (35) string (27) html (15) sequences (48) web (29) game (32) fparsec (15) pattern matching (15) algorithms (25)
Ankur Dhama (20) Nick Palladinos (66) Cesar Mendoza (17) Zhukoff Dima (8) NIck Palladinos (14) Phillip Trelford (87) Rick Minerich (15) Ryan Riley (25) Tuomas Hietanen (74) devshorts (11) Faisal Waris (37) Tomas Petricek (148) Brian Berns (9) Samuel Bosch (12) Evgeniy Andreev (13) Eirik Tsarpalis (89) nagat01 (19) Tao Liu (17) Gauthier Segay (11) Robert Pickering (10)
Database contains 3138 snippets out of which 1704 is public.