F# Snippets
Recently added snippets
Simple Crypto
Simple symmetric key cryptogrphy. Ok for low security usages.
Posted: yesterday by Faisal Waris
Minimal Twitter search function
A simple Twitter search function, leveraging the JSON type provider.
Posted: 6 days ago by Lincoln Atkinson
Draw from sequences
Peeks from a few seq randomly according to specified frequencies. not tested
Posted: 8 days ago by nicolas2
backup files
backup files , construct directory structure and then copy them one by one, ignore some sub directory in ignore list
Posted: 8 days ago by rigid wang
Count leading zeros
Several ways of counting leading zeros in a binary number.
Posted: 15 days ago by Bjørn Bæverfjord
Reducers
A simple yet powerful library for parallel collection processing. Inspired by Clojure's Reducers.
Posted: 17 days ago by Nick Palladinos
Popular snippets
Strategy pattern
Strategy pattern in F#
68 people like this
Posted: 1 years ago by Tao LiuMonadic Memoization
Modular memoization within a pure functional setting that is implemented as a convenient computation builder.
73 people like this
Posted: 2 years ago by Nick PalladinosContinuation-Passing Mnemonics
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.
72 people like this
Posted: 2 years ago by Neil Carrier
Read only ref
F# implementation of RO_ref from the "Effective ML" talk.
78 people like this
Posted: 2 years ago by fholmChain of responsibility II
Unlike the previous chain of responsibility, this version use the pipeline to chain responsibilities.
93 people like this
Posted: 1 years ago by Tao LiuChain of responsibility
The following sample wants to make sure the person’s age is between 18 and 65, weight is no more than 200 and tall enough (>120).
70 people like this
Posted: 1 years ago by Tao Liu
Snippets by tags
View all..Snippets by authors
View all..Database contains 1110 snippets out of which 839 are public.