aboutsummaryrefslogtreecommitdiff
path: root/vm.d
diff options
context:
space:
mode:
Diffstat (limited to 'vm.d')
-rw-r--r--vm.d4
1 files changed, 4 insertions, 0 deletions
diff --git a/vm.d b/vm.d
index a8d3d6e..db2d4a0 100644
--- a/vm.d
+++ b/vm.d
@@ -475,6 +475,10 @@ class VM {
Seq seq = asSeq(this.popA());
this.pushA(makeNumberValue(seq.length()));
break;
+ case OpCode.OP_REVERSE:
+ Seq seq = asSeq(this.popA());
+ this.pushA(makeSeqValue(seq.reverse()));
+ break;
case OpCode.OP_MEMBER:
Seq seq = asSeq(this.popA());
Value val = this.popA();