If DataView is only IEnumerable, and not IEnumerable<T>, then this would explain it. You can use "Seq.cast<T>" to convert to the <i>generic<i> IEnumerable type, and then be able to use the other Seq functions. The "toList" not being defined sounds fishy; Seq.toList should already be in scope, even without opening any namespaces. I'm not too familiar with DataView, but below is an example from the Regex library with the same issue; m.Groups is an IEnumerable, but not an IEnumerable<Group>, so I have to Seq.cast it. open System.Text.RegularExpressions let m = Regex.Match("abc", "(.).(.)") m.Groups |> Seq.cast<Group> |> Seq.iter (fun x -> printfn "group: %s" x.Value)

By on 4/7/2010 5:29 PM ()

What version of F# are you using?
In older versions, Seq.toList used to be Seq.to_list.

By on 4/8/2010 1:27 AM ()

I'm currently using F# 1.9.6.16.

By on 4/8/2010 2:42 PM ()

There you go. Using Seq.to_list + Brian's suggestion should do.

(Upgrade to a newer F# release maybe :-) )

By on 4/9/2010 4:51 AM ()

Thanks!

By on 4/9/2010 4:01 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