vishy wrote:
> user=> (require 'clojure.contrib.math)
> nil
> user=> (lcm 4 5)
> java.lang.Exception: Unable to resolve symbol: lcm in this context
> (NO_SOURCE_FILE:2)

The problem is that "require" only loads the math library, it doesn't 
"refer" to it.  This means that you have to qualify lcm with the full 
namespace, like this:

user=> (clojure.contrib.math/lcm 4 5)
20

You probably want "use" instead of "require", like this:

user=> (use 'clojure.contrib.math)
nil
user=> (lcm 4 5)
20

Hope that helps.

Alex

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to