7 people like it.
Like the snippet!
Generic TryParse to optional type:
let (x:DateTime option) = parse "2015-04-15"
let y = parse
1: 2: 3: 4: 5: 6: |
|
Link: | http://fssnip.net/qq |
Posted: | 10 years ago |
Author: | |
Tags: | option , tryparse , generic , static , constraint |