summaryrefslogtreecommitdiff
path: root/regen
diff options
context:
space:
mode:
authorRuslan Zakirov <ruz@bestpractical.com>2013-03-02 16:57:41 +0400
committerFather Chrysostomos <sprout@cpan.org>2013-09-13 01:25:34 -0700
commit6dd3e0f2449b60948d1ae2a8377afcea1fb88000 (patch)
tree7bb1d7d0fa55961d739a7b240953b5805d0fb866 /regen
parentace8699dea8a8f004662f49f5587ba134fee9da1 (diff)
downloadperl-6dd3e0f2449b60948d1ae2a8377afcea1fb88000.tar.gz
index/value array slice operation
kvaslice operator that imlements %a[0,2,4] syntax which result in list of index/value pairs. Implemented in consistency with "key/value hash slice" operator.
Diffstat (limited to 'regen')
-rw-r--r--regen/opcodes1
1 files changed, 1 insertions, 0 deletions
diff --git a/regen/opcodes b/regen/opcodes
index 61c0de5b21..84d979271f 100644
--- a/regen/opcodes
+++ b/regen/opcodes
@@ -217,6 +217,7 @@ aelemfast constant array element ck_null s$ A S
aelemfast_lex constant lexical array element ck_null d0 A S
aelem array element ck_null s2 A S
aslice array slice ck_null m@ A L
+kvaslice index/value array slice ck_null m@ A L
aeach each on array ck_each % A
akeys keys on array ck_each t% A