Takes a list of (quantity/amount and price/rate) as decimals, and gives a weighted average
0 people like thisPosted: 3 days ago by Tuomas Hietanen
Example of shaping an anonymous-object-as-JSON structure for an Azure dashboard using strong typing and minimal code using Farmer F# https://compositionalit.github.io/farmer/
0 people like thisPosted: 3 days ago by Tuomas Hietanen
A functional wrapper around MailboxProcessor that simplifies agent-based concurrency, adds error handling via events, and provides convenience functions to avoid common pitfalls when working with asynchronous message processing in F#.
0 people like thisPosted: 1 month ago by halcwb
Timestamp: Time format in ISO 8601 with timezone. YYYYMMDDhhmmssffff+zzzz For example 2011-05-17 19:01:10.000 -0200 would be: 20110517190110000-0200
0 people like thisPosted: 3 months ago by Tuomas Hietanen
Word guessing game using ASCII art.
3 people like thisPosted: 3 months ago by Phillip Trelford
Generate random hex-string and calculate base58encode. I made these for some initial BTC-testing, but didn't test too much... seems to work, but would need some unit-tests... :-) Feel free to update or add new versions.
2 people like thisPosted: 4 months ago by Tuomas Hietanen
Three functions showing how to implement projection for functional lists. First version uses naive recursion and the second one is tail-recursive using the accumulator parameter. The third version extends this with continuation passing.
74 people like thisPosted: 14 years ago by Tomas Petricek
This snippet provides a very small internal DSL for creating and querying XML using the underlying XLinq classes.
374 people like thisPosted: 14 years ago by Blake Coverett
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.
77 people like thisPosted: 14 years ago by Tomas Petricek
A functional wrapper around the new WCF Web APIs (http://wcf.codeplex.com/). Composition is achieved through the use of the HttpRequestMessage -> Async
Posted: 14 years ago by Ryan Riley
Composition of functions in F# is easily achieved by using the >> operator. You can also chain an arbitary amount of functions (represented as a list or sequence) together by folding the list/seq with >>. [More formally: the set of endomorphisms 'a -> 'a forms a monoid with the binary, associative operator ">>" (or "<<") and the neutral element "id".]
87 people like thisPosted: 14 years ago by Novox
We start with an initial value and then applying f repeatedly, until the value does not change anymore.
302 people like thisPosted: 14 years ago by Nick Palladinos
tutorial (17) fold (22) regex (17) http (18) game (32) kata (17) sequences (48) pattern matching (15) list (56) recursion (33) async (98) design patterns (18) array (22) monad (24) mailboxprocessor (27) parsing (28) html (16) f# (43) math (35) collections (16)
Taha Hachana (12) Joel Huang (13) Eirik Tsarpalis (89) mavnn (17) Tuomas Hietanen (78) NIck Palladinos (14) Gauthier Segay (11) Tao Liu (17) Cesar Mendoza (17) Evgeniy Andreev (13) Ankur Dhama (20) Brian Berns (9) Carsten König (10) Robert Pickering (10) Rick Minerich (15) Kit Eason (51) Fabio Galuppo (14) fholm (26) Zhukoff Dima (8) Ryan Riley (25)
Database contains 3203 snippets out of which 1717 is public.