diff options
| author | mryouse | 2022-07-14 01:54:25 +0000 |
|---|---|---|
| committer | mryouse | 2022-07-14 01:54:25 +0000 |
| commit | 00c5c7e2c043949ee8b3d6c32b01d338102da51f (patch) | |
| tree | 05ce30fa3c178b23798185a3eee55f91f3b81837 /neb/std | |
| parent | 8484dbac7b5bd85e4a25705a9346647ec4d1ab8b (diff) | |
exprs are of type list
Diffstat (limited to 'neb/std')
| -rw-r--r-- | neb/std/types.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/neb/std/types.py b/neb/std/types.py index 35dca42..0ce8b52 100644 --- a/neb/std/types.py +++ b/neb/std/types.py @@ -27,7 +27,7 @@ TYPES.register("int?", Builtin("int?", interpretIsInt, [Arg("arg", TypeEnum.ANY) def interpretIsList(symbol, args, env, ns): # if it's not a list, we're done - if not isinstance(args[0], List): + if not (isinstance(args[0], List) or isinstance(args[0], Expr)): return Bool(False) # if the symbol isn't a type, we're done |
