64 people like it.
Like the snippet!
The Let active pattern demonstrated by this snippet can be used to assign values to symbols in pattern matching. This is useful for writing complex pattern matching using match as we can handle multiple cases using a single clause.
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: |
|
Link: | http://fssnip.net/21 |
Posted: | 13 years ago |
Author: | Tomas Petricek |
Tags: | active pattern , pattern matching |