summaryrefslogtreecommitdiff
path: root/av.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-02-08 14:27:57 -0700
committerKarl Williamson <public@khwilliamson.com>2013-02-08 14:44:24 -0700
commit127191935588596728c62621b37dcfbab94edc5c (patch)
treedb24ba578bf8a4bb46b2981ef325f2d16c925a90 /av.c
parentbe3a7a5d0cbc1f6097d4470182c7b7e1d05d94c0 (diff)
downloadperl-127191935588596728c62621b37dcfbab94edc5c.tar.gz
Add av_tindex() synonym for av_top_index()
The latter is a somewhat less clumsy name. The old one is provided a a very clear name; the new one as a somewhat slangy version
Diffstat (limited to 'av.c')
-rw-r--r--av.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/av.c b/av.c
index a24bda0872..3041cd2347 100644
--- a/av.c
+++ b/av.c
@@ -766,6 +766,8 @@ array is C<av_top_index(av) + 1>. Returns -1 if the array is empty.
The Perl equivalent for this is C<$#myarray>.
+(A slightly shorter form is C<av_tindex>.)
+
=for apidoc av_len
Same as L</av_top_index>. Returns the highest index in the array. Note that the