3 people like it.
Like the snippet!
I think the following function is useful allowing you to do an Option.map + defaultArg in one go (plus defaultArg argument order is a little annoying). Might need a better name.
1: 2: 3: 4: |
|
Link: | http://fssnip.net/kl |
Posted: | 11 years ago |
Author: | David Grenier |
Tags: | option |