diff options
| author | mryouse | 2023-05-26 03:15:51 +0000 |
|---|---|---|
| committer | mryouse | 2023-05-26 03:15:51 +0000 |
| commit | 2ffc9959f3324a234d8337f05643c8e531154081 (patch) | |
| tree | 70d8b066adc8e72c5c64e4eb71da68ced0ccd00d /vm.d | |
| parent | aab6510a0e59c26a31526ff303a9d581736815fc (diff) | |
in? (lists and strings)
Diffstat (limited to 'vm.d')
| -rw-r--r-- | vm.d | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -404,6 +404,11 @@ class VM { Seq seq = asSeq(this.popA()); this.pushA(makeNumberValue(seq.length())); break; + case OpCode.OP_MEMBER: + Seq seq = asSeq(this.popA()); + Value val = this.popA(); + this.pushA(makeBooleanValue(seq.isIn(val))); + break; case OpCode.OP_ADD: Value b = this.popA(); /* |
