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: 28 days 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
Click on the tsunami.io button below to launch the online tsunami.io IDE with this snippet. Then select all the code (CTRL+A) and hit the Run button to start the game window, then just dock the window to the right of the code.. Click in the game window to launch missiles and save your cities.
0 people like thisPosted: 4 months ago by Phillip Trelford
An implementation of minimal adaptive cells
0 people like thisPosted: 5 months ago by Onur Gumus
Demonstrates how to implement the dynamic operator (?) using .NET Reflection. The implementation supports calling constructors, propreties and methods using simple overload resolution (based on parameter count). It handles instance as well as static members.
73 people like thisPosted: 14 years ago by Tomas Petricek
This command redo-undo implement group the command under Do/Undo category.
70 people like thisPosted: 14 years ago by Tao Liu
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: 14 years ago by Nick Palladinos
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 is to demonstrate that: (1) there are many ways to solve the same problems; (2) operators can be grouped together into data structures and act as data; (3) you can have fun in F# in many ways.
57 people like thisPosted: 14 years ago by Dmitry Soshnikov
Factory pattern in F#
81 people like thisPosted: 14 years ago by Tao Liu
array (22) http (18) list (56) pattern matching (15) tryfsharp (48) sequence (32) computation expression (15) game (32) silverlight (22) mailboxprocessor (27) lazy (20) reflection (19) f# (43) algorithms (26) monad (24) design patterns (18) regex (17) async (98) wpf (20) tutorial (17)
Carsten König (10) mavnn (17) Kit Eason (51) Fabio Galuppo (14) Rick Minerich (15) Zhukoff Dima (8) Ryan Riley (25) Robert Pickering (10) Tao Liu (17) Cesar Mendoza (17) Nick Palladinos (66) Tuomas Hietanen (76) fholm (26) Taha Hachana (12) Eirik Tsarpalis (89) Gauthier Segay (11) devshorts (11) Phillip Trelford (87) Evgeniy Andreev (13) Brian Berns (9)
Database contains 3201 snippets out of which 1715 is public.