Two wrappers

One for math ops, the other for Boolean.

Fixes: https://todo.sr.ht/~sforman/thun-der/13
This commit is contained in:
Simon Forman
2022-04-05 10:02:01 -07:00
parent 68f6e210e5
commit 2fb27971f1
3 changed files with 49 additions and 29 deletions
+2 -2
View File
@@ -179,10 +179,10 @@ def concat(quote, expression):
# In-lining is slightly faster (and won't break the
# recursion limit on long quotes.)
if not isinstance(quote, tuple):
raise NotAListError('Not a list.')
temp = []
while quote:
if not isinstance(quote, tuple):
raise NotAListError(repr(quote))
item, quote = quote
temp.append(item)
for item in reversed(temp):