Thanks, I think I was trying to wrong thing (don't know why I was trying to
use import rather than require).
--
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 member
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
If you do a
(require 'clojure.string)
then all vars will be accessible as clojure.string/...
e.g.clojure.string/split-lines
.
You can use "use" to import the vars into the current namespane:
(use 'clojure.string)
This wil make available all vars from clojure.string in you current
namespace
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)
a