stackerizer-mb macro flatten arity mismatch
#5
Closed
opened 8 years ago by jpeinelt
·
3 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
In the middle of the page (http://beautifulracket.com/stackerizer/the-expander.html) where the input gets flatten the shown code:
fails with
the code should be
What is the specific input that’s causing the arity-mismatch error?
@mbutterick any input file with more than one expression. I had to do this same fix but I did mine slightly different:
(this also made the output more readable for me)
Here's my repro:
I see your point, but
stackerizer
makes a program forstacker
, which in turn represents a single expression. Therefore, it only makes sense thatstackerizer
be restricted to one expression. I will adjust the tutorial to make this ground rule clearer.