Here's an example from the REPL that should get you going:
user => (require '[clojure.string :as str]) nil user=> (str/split-lines "foo\nbar\r\nbaz\n") ["foo" "bar" "baz"] Cheers, Aaron Bedra -- Clojure/core http://clojure.com On 10/18/2011 05:52 AM, Omer Kudat wrote:
Hi all, I've started to teach myself clojure recently, so apologies for a potentially stupid question. I'm using clojure-1.3.0.jar, downloaded very recently. I would like to use clojure.string/split-lines, but I cannot access the namespace. I've tried: (import 'clojure.string) (import 'string) and (:require [clojure.string :as str])) The last one is from the documentation in the string.clj file embedded in the jar. They all throw either a "java.lang.ClassNotFoundException: clojure.string" or a "java.lang.Exception: No namespace: clojure.string". Calling (all-ns) gives me a list of namespaces which does not include string, and (find-ns) doesn't find clojure.string either. Not sure what I'm doing wrong. Any pieces of wisdom? Omer
-- 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