Closed dapper-gh closed 1 year ago
Thanks, David! The problem arises because I parse/expand sections outside-in rather than inside-out. Subsequently, the inner section's bindings are reinterpreted as the outer section's bindings upon expansion. A true fix for this issue will come with #66, but in the interim, I will try to hack something together to fix the immediate problem.
section
that correctly respects nested lambdas. 2.5.0 produces:(display ((section map (section + 1 _) _) (list 1 2 3)))
> (list 2 3 4)
As expected!
Summary
When nesting
section
expressions, outersection
s do not ignore holes in innersection
s.Example Code
This code traces as follows, according to the debugger:
Note that the outer
lambda
has two arguments (_1
and_2
) when only_2
is expected to be part of thatlambda
.