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.
73 people like thisPosted: 14 years ago by Tomas Petricek
ipv4 conversion snippet, updated based on current version, changed a lot to make it a bit more .NETish
6 people like thisPosted: 13 years ago by david klein
A pattern for creating n-ary Seq.map functions, based on numerals.
5 people like thisPosted: 12 years ago by Nick Palladinos
adhoc example
0 people like thisPosted: 8 years ago by Acme
An example showing how to process list in a pipeline. We first use List.filter to return only even numbers and then use List.map to format them as strings.
4 people like thisPosted: 7 months ago by Tomas Petricek
Sorted Map
18 people like thisPosted: 13 years ago by fholm
A pattern for creating n-ary Seq.map functions.
5 people like thisPosted: 12 years ago by Nick Palladinos
Creates a map containing each item and its frequency as a key/value pair. Then sort by value in reverse order before printing each item.
2 people like thisPosted: 10 years ago by Bjørn Bæverfjord
A small set of operators for converting boolean expressions to an optional type on the principle of false -> None, true -> Some value.
0 people like thisPosted: 2 years ago by Pavel Tatarintsev