Try either

1
2
3
let filterList l  =
    l
    |> List.filter(function | Atype i ->  i.a = "x" | _ -> false) 

or

1
2
3
4
5
6
7
8
9
10
11
let filterList l  =


    l


    |> List.filter(function | Atype {a="x"} ->  true | _ -> 

false) 

By on 10/21/2010 3:47 PM ()

Thank you for this.

By on 10/22/2010 12:11 AM ()
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