It's a destructive operation. It breaks functional purity (but it could be made functional by using a stack instead of a list for the stack.) There's no point to returning the expression object now because it's being mutated by the prepend() method (rather than being replaced by new forms.) |
||
|---|---|---|
| .. | ||
| Nim | ||
| Prolog | ||
| Python | ||
| defs.txt | ||
| expr.py | ||