Interesting Active Patterns

I wanted to do a quick post about active patterns in F#, specifically the usefulness of Single Total Active Patterns (STAPs?) for transforming and validating data. »

F# Symbolic Math, Part 2

In a previous post, I showed how to represent mathematical expression trees using discriminated unions and gave an example of using them to compute derivitives. In »

F# and Output Parameters

One perpetual source of annoyance in C# is output parameters. Normally, output parameters are used when multiple values need to be returned from a method. Within »

XML Transformations with F#

Recently I needed to come up with a way to define transformations for importing different XML formats into an application. The traditional way to transform one »