<div class="gmail_quote">On Sat, May 29, 2010 at 23:17, Andrei Alexandrescu <span dir="ltr">&lt;<a href="mailto:andrei@erdani.com">andrei@erdani.com</a>&gt;</span> wrote:<br><div><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

There&#39;s a tacit rule that has r.opSlice(a, b) return the same type as r itself.<br>
<br>
I&#39;m not sure if take does that already, but it should simply morph into opSlice() if opSlice() is available. No need to use another layer when opSlice does what you need.<br></blockquote><div><br>No, it does not do that already. OK, I&#39;m a pain, but what if the range does not know its length? How do you know if r[0..n] is OK?<br>
</div></div>