A random pex4fun puzzle to write a snippet to merge two strings.
2 people like thisPosted: 10 years ago by Joel Huang
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: 2 years ago by Pavel Tatarintsev
A simple example of using datatype generic JSON operations from Infers.Toys.
4 people like thisPosted: 6 years ago by Vesa Karvonen
A quick snippet showing three different ways of dynamically/reflectively locating a module then invoking a generic function. The first two don't rely on a class. But the third is more readable/understandable for most .NET devs.
4 people like thisPosted: 2 years ago by Cerberus (FSharp Discord)