3 people like it.
Like the snippet!
Strangely enough, really useful documentation of F#'s "function" keyword used for pattern matching is difficult to find within Microsoft's official documentation. A Google search turns up some helpful illustrations and discussions of the keyword. Here's a simple example that some might find useful.
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: |
|
Link: | http://fssnip.net/kf |
Posted: | 11 years ago |
Author: | musicologyman |
Tags: | pattern matching |