76a9142220867b1e79c403fafe339a809a65ed01cb697988ac
0 people like thisPosted: 2 days ago by The streets
Compiles simple F# quoted expressions (literals, values, operators, ifs and for loops) to Java code.
1 people like thisPosted: 22 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: 24 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
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
Strategy pattern in F#
80 people like thisPosted: 11 years ago by Tao Liu
This snippet shows how to create objects with events in F#. It shows both simple event (to be used from F#) and a .NET compatible event with specific delegate type.
81 people like thisPosted: 12 years ago by Tomas Petricek
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.
72 people like thisPosted: 12 years ago by Tomas Petricek
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: 12 years ago by Alex Muscar
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
html (15) agent (20) generic programming (17) web (29) seq (54) math (35) async (98) mailboxprocessor (27) f# (43) array (22) regex (17) tryfsharp (48) fparsec (15) monad (23) pattern matching (15) parsing (27) tutorial (17) silverlight (22) quotations (21) design patterns (18)
Tuomas Hietanen (74) Zhukoff Dima (8) Gauthier Segay (11) Ankur Dhama (20) Fabio Galuppo (14) Nick Palladinos (66) Robert Pickering (10) Ryan Riley (25) mavnn (17) Brian Berns (9) Evgeniy Andreev (13) Cesar Mendoza (17) Carsten König (10) NIck Palladinos (14) Tomas Petricek (148) David Klein (16) Joel Huang (13) Tao Liu (17) Phillip Trelford (87) Eirik Tsarpalis (89)
Database contains 3137 snippets out of which 1704 is public.