Variables in patterns not specified on the left-hand side of a rule may now be used...
authorimode <immediate.mode@gmail.com>
Tue, 13 Nov 2018 04:40:33 +0000 (20:40 -0800)
committerimode <immediate.mode@gmail.com>
Tue, 13 Nov 2018 04:40:33 +0000 (20:40 -0800)
modal.py

index 5a7a47d..d45562b 100644 (file)
--- a/modal.py
+++ b/modal.py
@@ -75,7 +75,7 @@ def construct(pattern, context):
                 for element in context[element[1]]:
                     results.append(element);
             else:
-                return None;
+                results.append(element);
         else:
             results.append(element);
     return results;