F # on mono in leopard. Seq.cast error

I came across this answer to the question , but I am unable to compile the code. I am getting the following error on Seq.cast:

error FS0039: The value, constructor, namespace, or type "cast" is undefined.

I am using Mono 2.0.1_1 and F # 1.9.4.19 on leopard. Is there something funky about f # when running in mono?

+1


source to share


2 answers


You need to upgrade to the latest F # 1.9.6.2 (also known as the September CTP): http://www.microsoft.com/downloads/details.aspx?FamilyID=61ad6924-93ad-48dc-8c67-60f7e7803d3c&displaylang=en



Cheers, Rob

+3


source


Thanks Rob. That's all. I was able to get around this using map_to_typed in 1.9.4.19.



Seq.map_to_typed (fun e -> e:> System.Xml.XmlNode)

0


source







All Articles