Active patterns are either 'partial' (have an _ case) or 'multicase', but not both.

You want one of these two:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
    let (|Six|Eight|Twelve|Other|) (input : int) = 
        if input = 0 then Six
        elif input = 1 then Eight
        elif input = 2 then Twelve
        else Other
 
    let (|Six|_|) (input : int) = 
        if input = 0 then Some(Six)
        else None
    let (|Eight|_|) (input : int) = 
        if input = 1 then Some(Eight)
        else None
    let (|Twelve|_|) (input : int) = 
        if input = 2 then Some(Twelve)
        else None
 
By on 6/22/2010 2:18 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper