Seq.length

By on 9/3/2009 1:22 PM ()

Seq.length

And incur the overhead of an accumulator? Oh, the calls inside iter cost something too? Nevermind then.

By on 9/3/2009 1:46 PM ()

Seq.length

And incur the overhead of an accumulator? Oh, the calls inside iter cost something too? Nevermind then.

Well, if you really want to avoid all overhead, probably something like (browser coding, never compiled):

let inline Force (s:seq<_>) =

use e = s.GetEnumerator()

while e.MoveNext() do ()

would be best.

By on 9/3/2009 2:05 PM ()

What's wring with "Seq.iter ignore"?

By on 9/3/2009 12:06 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