Signal a syntax error if predicate is false.
(x, predicate, msg="wrong length")
| 270 | return list(map(expand, x)) # (f arg...) => expand each |
| 271 | |
| 272 | def require(x, predicate, msg="wrong length"): |
| 273 | "Signal a syntax error if predicate is false." |
| 274 | if not predicate: raise SyntaxError(to_string(x)+': '+msg) |
| 275 | |
| 276 | _append, _cons, _let = map(Sym, "append cons let".split()) |
| 277 |
no test coverage detected