We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is the result of running macro:
(define-syntax flatten (syntax-rules (aux reverse) ((_ xs) (flatten aux xs ())) ((_ aux ((xs ...) ys ...) (result ...)) (flatten aux (xs ... ys ...) (result ...))) ((_ aux (x xs ...) (result ...)) (flatten aux (xs ...) (x result ...))) ((_ aux () (result ...)) (flatten reverse (result ...) ())) ((_ reverse () (result ...)) '(result ...)) ((_ reverse (x xs ...) (result ...)) (flatten reverse (xs ...) (x result ...))))) (print (flatten ((1 2 (a b) (c d)) (3 4 (e f) (g h)))))
Bun on the other hand creates a very long expansion and probably throws StackOverflow:
The text was updated successfully, but these errors were encountered:
fix recursive flatten #304
fd3c0c1
No branches or pull requests
This is the result of running macro:
Bun on the other hand creates a very long expansion and probably throws StackOverflow:
The text was updated successfully, but these errors were encountered: