Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

lift-a produces an exception when n is (inc 1) but not when n is 2 #204

Open
luminusian opened this issue May 17, 2017 · 1 comment
Open

Comments

@luminusian
Copy link

((m/lift-a 2 +) [1] [2])
=> [3]
((m/lift-a (inc 1) +) [1] [2])
CompilerException java.lang.ClassCastException: clojure.lang.PersistentList cannot be cast to java.lang.Number
@luminusian
Copy link
Author

It seems possible to remove n from parameters of lift-a and instead infer n from when the function is applied to arguments.
lift-a may be a function instead of a macro.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant