<div dir="ltr">also, workarounds involving:<div><span style="font-size:12.8px">iota(0,256).map!(a=>cast(ubyte)a)</span><br></div><div><span style="font-size:12.8px">are neither pleasant nor efficient</span></div><div><span style="font-size:12.8px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 8, 2015 at 7:41 PM, Timothee Cour <span dir="ltr"><<a href="mailto:thelastmammoth@gmail.com" target="_blank">thelastmammoth@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">how to do iota(0,256) with ubytes ?<div>and more generally:</div><div>iota with 'end' parameter set to max range of a type.<br><div><br></div><div>of course this doesn't work:<br><div>auto b=iota(ubyte(0), ubyte(256));<br></div></div></div><div>//cannot implicitly convert expression (256) of type int to ubyte</div><div><br></div><div>Could we have a function with iota_inclusive that has inclusive bounds for 'end' parameter ?</div><div><br></div></div>
</blockquote></div><br></div>