Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Active Patterns

Single-case Active Patterns vs Function Calls

In response to an earlier post a reader wrote: Sent From: namin Subject: (|EnsurePrefix|) -- why is it an active pattern? __________________________________ Hi Chris, I was reading your blog entry Regular Expressions via Active Patterns and I am puzzled
Posted by ChrSmith | 0 Comments
Filed under: ,

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 | 2 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 | 3 Comments
Filed under: ,
 
Page view tracker