Hi everyone,
Just tested it in another command prompt. It works perfectly now
Also running (doc map) returns nil in the console which outputs the
wrong answer
The program clojure-noob (core.clj) only prints out one line so it is
hard to see how it could change the definition of map.
*1 returns [1 2 4] with Clojure version 1.7.0
I'm just a bit worried my clojure programs will run off with a mind of
their own from time to time but no matter. Will update to 1.8 once it's
released
On Monday, January 11, 2016 at 6:16:29 PM UTC+1, Igwe Ogba wrote:
>
>
>
> <https://lh3.googleusercontent.com/-Vuz2LtQhRdk/VpPhWsVjObI/AAAAAAAAAUc/zNzJ-PEnPrc/s1600/clojure_map_error.PNG>
> Hello. I'm still a Clojure newbie and had a bit of code return what seems
> to be the wrong value.
>
>
>
> <https://lh3.googleusercontent.com/-Vuz2LtQhRdk/VpPhWsVjObI/AAAAAAAAAUc/zNzJ-PEnPrc/s1600/clojure_map_error.PNG>
> After typing in (map inc [1 2 3 4]) I would expect to get [2 3 4 5].
> However my Clojure repl returns [1 2 3 4]. This is happening on windows.
> I've included a screenshot as well. Is this sort of behaviour (where the
> wrong answer appears) normal in Clojure and are there any implications for
> real time code?
>
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.