Press CTRL+C or CMD+C to copy the selected text and close this dialog.
Tweet
1 people like it. Like the snippet!
Example active pattern for tweet.
1: 2: 3: 4: 5: 6: 7: 8: 9: 10:
/// Checks to see if a list has exactly one element /// and checks to see if that one element is a /// particular given element. let (|Singleton|_|) element listarg = match listarg with | [x] -> if x = element then Some () else None | _ -> None