Sequences are lazy, which is why you can create

1
{for i in 0I .. 100000000000000000000000I -> "a"}


in a blink.

...and why you get an empty sequence when modifying the array it is based on.

Note that if you use

1
let x = Seq.take 5 queue


before the array iteration, x will not be an empty list. If you want to keep the values of your seq right after the definition, you can use Seq.to_list or suchlike.

Hope this helps

By on 3/6/2008 5:54 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