diff options
| author | mryouse | 2023-05-25 22:52:07 +0000 |
|---|---|---|
| committer | mryouse | 2023-05-25 22:52:07 +0000 |
| commit | 785b43a7b6635e6fadb94e224a094e524c9e0ccd (patch) | |
| tree | 5c60ee3d25a747c21e480283a9dd4021457c43f3 /vm.d | |
| parent | 3535bfefccea789169786767ac80c54241cae019 (diff) | |
length on seq
Diffstat (limited to 'vm.d')
| -rw-r--r-- | vm.d | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -395,6 +395,10 @@ class VM { Seq seq = asSeq(this.popA()); this.pushA(makeSeqValue(seq.rest())); break; + case OpCode.OP_LENGTH: + Seq seq = asSeq(this.popA()); + this.pushA(makeNumberValue(seq.length())); + break; case OpCode.OP_ADD: Value b = this.popA(); /* |
