Takes a list of (quantity/amount and price/rate) as decimals, and gives a weighted average
0 people like thisPosted: yesterday 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: yesterday 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: 2 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
Here is an improved version twice shorter, than original
72 people like thisPosted: 14 years ago by Nick Canzoneri
The ObservableObject type implements the INotifyPropertyChanged interface used in WPF and Silverlight to notify on changes to properties that are bound to a control. Specify property names type safely using F# Quotations, i.e. <@ this.PropertyName @> when invoking the NotifyPropertyChanged method. If you are following the MVVM pattern then your View Model class can inherit from the ObservableObject type.
67 people like thisPosted: 14 years ago by Phillip Trelford
F# implementation of RO_ref from the "Effective ML" talk.
92 people like thisPosted: 14 years ago by fholm
Strategy pattern in F#
83 people like thisPosted: 14 years ago by Tao Liu
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
89 people like thisPosted: 14 years ago by fholm
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
math (35) generic programming (17) string (29) fold (22) pattern matching (15) list (56) collections (16) mailboxprocessor (27) design patterns (18) array (22) monad (24) staging (18) async (98) web (29) learning f# (16) kata (17) html (16) sequences (48) seq (54) regex (17)
mavnn (17) nagat01 (19) Ankur Dhama (20) Kit Eason (51) NIck Palladinos (14) Joel Huang (13) Phillip Trelford (87) Taha Hachana (12) Cesar Mendoza (17) Eirik Tsarpalis (89) Antonio Cisternino (8) Evgeniy Andreev (13) Tuomas Hietanen (78) Fabio Galuppo (14) David Klein (16) Brian Berns (9) Rick Minerich (15) Zhukoff Dima (8) devshorts (11) Nick Palladinos (66)
Database contains 3203 snippets out of which 1717 is public.