Using incomplete pattern matching as filter?
问题 Suppose I have the following code: type Vehicle = | Car of string * int | Bike of string let xs = [ Car("family", 8); Bike("racing"); Car("sports", 2); Bike("chopper") ] I can filter above list using incomplete pattern matching in an imperative for loop like: > for Car(kind, _) in xs do > printfn "found %s" kind;; found family found sports val it : unit = () but it will cause a: warning FS0025: Incomplete pattern matches on this expression. For example, the value 'Bike (_)' may indicate a