David L. Nicol wrote:
> in the tcsh 6.10.00 WishList file:
> > [...]
> > > echo $a:[#]
> > 16
> > > echo $a:[6-7]
> > is
> > > echo $a:[-2]
> > ng
> > [...]
Iconesque.
In Icon, if symbol x holds a string, x[2:3] means substr($x,2,1); but
if x holds a list (array), it means @x[2,3]. Similarly, *x is
length($x) or scalar(@x) or scalar(keys %x), depending. And, one I've
always liked: ?x for a string is a random character, and for a list or
table, a random element.
--
Sean M. Burke [EMAIL PROTECTED] http://www.spinn.net/~sburke/