Skip to content

Commit 02921bc

Browse files
add len operator a la Lua
1 parent 372ce9b commit 02921bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

json_runner.py

+1
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ def op_100_AT(self, left, right):
454454
except TypeError:
455455
return [left, right]
456456

457+
def op_100_HASH(self, left, right): return [left, len(right)]
457458
def op_200_DOTDOT(self, left, right): return [range(left, right)]
458459
op_200_to = op_200_DOTDOT
459460
def op_300_CARET(self, left, right): return [pow(left, right)]

0 commit comments

Comments
 (0)