Here's one way. I created a class T and added a static method to return a populated List<T> for testing purposes.

1
2
3
4
5
let tList = T.getList()

let seq0 = seq { for x in tList do if x.Type = 0 then yield x }
let seq1 = seq { for x in tList do if x.Type = 1 then yield x }
let seq2 = seq { for x in tList do if x.Type = 2 then yield x }
By on 3/10/2009 9:41 PM ()

Thanks, this works.

By on 3/10/2009 11:03 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