Welcome to MSDN Blogs Sign in | Join | Help

February 2008 - Posts

Regular Expressions via Active Patterns

In my last post I introduced Active Patterns. Sure they seem neat, but what do you actually do with them?. This post coverage how to leverage Active Patterns to make your code simpler and easier to understand. In particular, how you can use Regular Expressions in Active Patterns.
Posted by ChrSmith | 4 Comments
Filed under: ,

Introduction to F# Active Patterns

You may have heard of Active Patterns before – typically in conjunction with the words ‘awesome’ or ‘amazing’. Active Patterns are one of the more unique language features in F# and once you get a good feel for them one of the most powerful. This post will demonstrate Active Patterns from single-case and multi-case to partial and parameterized. If it’s called an Active Pattern, you’ll see an example in this post. So let’s get started.
Posted by ChrSmith | 4 Comments
Filed under: ,

Pattern matching snippets

I've written up a few snippets demonstrating F# pattern matching.
Posted by ChrSmith | 3 Comments
Filed under: ,
 
Page view tracker