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

Nested defns cause incorrect error messages. #84

Open
HFellows opened this issue Feb 22, 2016 · 1 comment
Open

Nested defns cause incorrect error messages. #84

HFellows opened this issue Feb 22, 2016 · 1 comment
Assignees

Comments

@HFellows
Copy link
Member

(defn map-mod-2 [ls] (map (defn mod-2 [x] (mod x 2) ls)))
causes

Error: In function map, the first argument clojure.lang.Var must be a function but is a function.
Found in file may2015.clj on line 9 at character 1.
        corefns.corefns/map (corefns.clj line 37)
        intro.may2015/map-mod-2 (may2015.clj line 7)
        intro.may2015/eval8690 (may2015.clj line 9)
        intro.core/-main (core.clj line 114)

Which is a problem.

@HFellows
Copy link
Member Author

HFellows commented Apr 3, 2016

It's not clear to me how to solve this. It's a failure of the preconditions on map.

@leek5pin leek5pin self-assigned this Jun 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants