Recently added snippets
Inspired by @theburningmonk, this snippet defines a couple of extensions and operators that can be used to make F# as short and as obscure as APL. Complete with a 19 character solution of the Euler problem #1!
Posted: 5 days ago by Tomas Petricek
Fibonacci sequence with fold
Posted: 9 days ago by Andriy Tolstoy
The 'Vsync' (AKA, 'Variable Synchronization') computation expression that coheres into the Sync comp. expr. when SYNC is #defined, and into the Async comp. expr. otherwise.
Posted: 15 days ago by Bryan Edds
Posted: 19 days ago by Loïc `Tarmil` Denuzière
Learning F# with my 11 year old nephew, he is loving it, swapping out assets and creating new ones, adjusting gravity to what feels right to him and putting in very basic collision detection. Going to keep expanding on it over the year.
Posted: 22 days ago by John Nolan, Callum Simpson
Flappy bird clone script using Mono's Xwt toolkit, click the mouse or hit space to flap, no collision detection. To run you will need to build xwt from source https://github.com/mono/xwt
Posted: 24 days ago by Phillip Trelford
Some simple functions for writing more idiomatic F# tests with NUnit.
84 people like this
Posted: 4 years ago by Ryan Riley
This snippet provides a very small internal DSL for creating and querying XML using the underlying XLinq classes.
345 people like this
Posted: 4 years ago by Blake Coverett
get the list of ethernet sql servers
85 people like this
Posted: 4 years ago by nCdy
An example showing how to process list in a pipeline. We first use List.filter to return only even numbers and then use List.map to format them as strings.
84 people like this
Posted: 4 years ago by Tomas Petricek
Modular memoization within a pure functional setting that is implemented as a convenient computation builder.
82 people like this
Posted: 4 years ago by Nick Palladinos
Unlike the previous chain of responsibility, this version use the pipeline to chain responsibilities.
97 people like this
Posted: 3 years ago by Tao Liu
Snippets by tagsView all..
Snippets by authorsView all..
Database contains 1694 snippets out of which 1246 are public.