This program is a mess, really - just ignore support functions. It'll be great if you can help me tidy up. Here's the passcode: "Passcode". The version of code below may not be original.
0 people like thisPosted: 3 hours ago by you
"Please enter the description" - Why'd I do that ?
0 people like thisPosted: 3 hours ago by you
String.Join (" ", [| "This" ; "is"; "a" ; "way" ; "to" ; "generate" ; "a" ; "shuffled" ; "array" ; "with" ; "given" ; "elements" ; "from" ; "an" ; "(ordered)" ; "array." |]) |> printf "\n >> %A\n"
0 people like thisPosted: 3 hours ago by you
Simple prototype C# AST and parser using the FParsec parser combinator library. Parses a subset of C# 1.1 constructs.
2 people like thisPosted: 3 days ago by Phillip Trelford
Function, what calculates x^n by non-recursive basic exponentiation squaring algorithm. This method uses the bits of the exponent to determine computing powers. Generic parameter x suitable for any type what supports multiplication. I do not suppose existence of inverse operator like "/", thus parameter n must be a positive integer only. It is not difficult to define an extended variant for a type what supports division.
3 people like thisPosted: 17 days ago by Pavel Tatarintsev
Get Bitcoin wallet account balance by public 1Attj6CfQgnbrkmyeahbFEfjK2T3BRtyzJ
0 people like thisPosted: 1 month ago by The streets
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.
65 people like thisPosted: 9 years ago by Tomas Petricek
Some simple functions for writing more idiomatic F# tests with NUnit.
88 people like thisPosted: 9 years ago by Ryan Riley
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.
90 people like thisPosted: 9 years ago by Tomas Petricek
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.
65 people like thisPosted: 9 years ago by Tomas Petricek
Three ways to split a list in half (but not necessarily in the middle). A forth version added that's very short and should be fast, as we only use List.fold. New champ found.
78 people like thisPosted: 9 years ago by Dmitri Pavlenkov
This snippet shows how to create objects with events in F#. It shows both simple event (to be used from F#) and a .NET compatible event with specific delegate type.
78 people like thisPosted: 9 years ago by Tomas Petricek
fparsec (15) array (22) parsing (25) web (26) sequence (31) tryfsharp (48) string (24) wpf (20) monad (22) f# (44) tutorial (17) lists (14) reflection (18) pattern matching (14) list (53) staging (18) agent (20) dsl (23) silverlight (22) quotations (19)
Joel Huang (14) Tao Liu (17) Cesar Mendoza (17) fholm (26) Tuomas Hietanen (70) David Klein (16) Samuel Bosch (12) Fabio Galuppo (14) Kit Eason (51) Mauricio Scheffer (7) Carsten König (10) Eirik Tsarpalis (86) Zhukoff Dima (8) Robert Pickering (11) Rick Minerich (15) NIck Palladinos (14) Gauthier Segay (11) Phillip Trelford (88) nagat01 (19) Nick Palladinos (66)
Database contains 2389 snippets out of which 1622 is public.