Skip to content
New issue

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

Suggests to pass macro to reduce (reduce and true [true false]) #142

Open
andrusieczko opened this issue Oct 1, 2015 · 0 comments
Open
Labels

Comments

@andrusieczko
Copy link

Hi,

When you have the following code:

(reduce #(and %1 %2) true [true false])

this will complain:

Consider using:
  and
instead of:
  #(and %1 %2)

But unfortunately you can't use (reduce and true [true false]):

CompilerException java.lang.RuntimeException: Can't take value of a macro: #'clojure.core/and, compiling:(NO_SOURCE_PATH:1:1) 

Thanks,
Karol

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

No branches or pull requests

2 participants