So I took a look at the code included in the distrib and assuming I am not misinterpreting the code. Then Seq.Cache would treat a CachedSeq as a seq and at the very least new up another CachedSeq.

My main motiviation for asking this question stems from the lack of a unzip function in the Seq module. Fortunately it is trivial to implement but to keep with the main idea of a stream, I thought it was important to make sure that unzip works only on CachedSeq's which prevent reevaluating the lazy stream when either of streams in the returned pair is consumed. With that said I wonder why the decision was made not to include any unzip functions in the Seq module.

By on 10/11/2008 6:44 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