Turtle interpreter example using Mono's Gtk# library with example paths for MonoDevelop (running on Linux) and Xamarin Studio (running on Mac and Windows).
0 people like thisPosted: 6 days ago by Phillip Trelford
Function to get all possible combinations of list items. There are some Euler problems (like 77 & 78) to get total amounts. But e.g. for some card game implementations you will need the real items.
2 people like thisPosted: 8 days ago by Tuomas Hietanen
From Löb's Theorem to Spreadsheet Evaluation (memoized), based on http://blog.sigfpe.com/2006/11/from-l-theorem-to-spreadsheet.html
2 people like thisPosted: 14 days ago by NIck Palladinos
From Löb's Theorem to Spreadsheet Evaluation, based on http://blog.sigfpe.com/2006/11/from-l-theorem-to-spreadsheet.html.
0 people like thisPosted: 14 days ago by NIck Palladinos
Transform a Free Monad interpreter to a compiler through staging.
1 people like thisPosted: 19 days ago by Nick Palladinos
Re-hash of the Free-monad interpreter by erdeszt https://gist.github.com/erdeszt/f8b351b5e6ec4fd903ef based on http://programmers.stackexchange.com/a/242803/145941
2 people like thisPosted: 1 months ago by amieres
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.
88 people like thisPosted: 6 years ago by Neil Carrier
There is a namespace System.Runtime.Serialization.Json To serialize generic object you can do like this...
74 people like thisPosted: 6 years ago by Tuomas Hietanen
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).
75 people like thisPosted: 5 years ago by Tao Liu
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.
63 people like thisPosted: 6 years ago by Tomas Petricek
We start with an initial value and then applying f repeatedly, until the value does not change anymore.
291 people like thisPosted: 6 years ago by Nick Palladinos
There is a namespace System.Runtime.Serialization.Json To serialize generic object you can do like this...
74 people like thisPosted: 6 years ago by Tuomas Hietanen
parsing (22) kata (17) string (17) reflection (18) pattern matching (12) game (30) sequence (29) mailboxprocessor (25) learning f# (16) lazy (18) web (23) recursion (26) dsl (22) lists (13) wpf (17) http (14) tryfsharp (48) quotations (17) async (91) f# (42)
David Klein (16) Daniel Robinson (7) Mauricio Scheffer (7) devshorts (11) Ryan Riley (23) Faisal Waris (21) Cesar Mendoza (17) David Grenier (7) Samuel Bosch (12) Tao Liu (17) Ankur Dhama (20) mavnn (17) Gauthier Segay (10) Eirik Tsarpalis (65) Antonio Cisternino (8) Tomas Petricek (143) Kit Eason (47) Robert Pickering (11) Fabio Galuppo (14) Joel Huang (14)
Database contains 2107 snippets out of which 1455 is public.