There are a number of ways, here are a couple:

seq { yield 1; yield 2; } // sequence expression

([1; 2] :> seq<_>) // make a list and upcast to seq

By on 5/15/2009 4:23 PM ()

Or seq[1] for one and seq[1;1] for two elements.

By on 5/15/2009 5:17 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