Your match statement that matches h::t expects a list. You could change the 'check' function to use a 'for' loop, which iterates over seqs (e.g.

for x in rows do

printfn "%s" (status x)

) or you can use (List.of_seq excel.Rows) to turn that value into a list before passing it to the function. The former is probably easier/better, if all you want to do is iterate over the values, using seq data and a for loop to iterate over it is fine, no need to convert data structures.

Note that 'seq' type in F# is just shorthand for 'IEnumerable'.

By on 12/17/2008 8:10 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