<div dir="ltr">Given someone who often finds himself in shoes similar to Alan&#39;s, at least with regard to python, the syntax of x(-1) often slips through my fingertips in NCL as well.<div><br></div><div>I also can&#39;t think of any immediate downsides, as I believe there is no acceptable or legal use of negative non-coordinate indices in NCL currently, and I would think no reasonably constructed code would be &#39;dependent&#39; on errors thrown by attempting to use such indices.</div><div><br></div><div>Lastly, there are a number of times in which I&#39;ve used syntax such as x(0:dimsizes(x)-2), which, perhaps unintuitively, reads all but the last 1 item.</div><div><br></div><div>Just consider this another vote in favor, pending any future discovery of downsides.</div><div><br></div><div>Thanks for considering...</div><div><br></div><div><br></div><div>Kyle</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, May 10, 2016 at 7:17 PM David Brown &lt;<a href="mailto:dbrown@ucar.edu">dbrown@ucar.edu</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I agree that negative indexes would be great and we don&#39;t know what<br>
the downsides are either, although we would probably find out if we<br>
tried to implement them.<br>
 -dave<br>
<br>
On Tue, May 10, 2016 at 2:41 PM, Alan Brammer &lt;<a href="mailto:abrammer@albany.edu" target="_blank">abrammer@albany.edu</a>&gt; wrote:<br>
&gt; Not sure if this has been brought up before but I’d really like the ability to fetch the last index of an array using x(-1), or similarly the last n of the array x(-n:)<br>
&gt;<br>
&gt; Being in a mostly javascript/python world outside of NCL negative indexes have been quite useful.<br>
&gt;<br>
&gt; Any plans or possibility of this becoming a thing, or are there downsides I’m not thinking of?<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Alan<br>
&gt; _______________________________________________<br>
&gt; ncl-talk mailing list<br>
&gt; <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
&gt; List instructions, subscriber options, unsubscribe:<br>
&gt; <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>