On Sat, May 21, 2011 at 11:56 AM, David Nolen <dnolen.li...@gmail.com>wrote:
> On Sat, May 21, 2011 at 11:46 AM, larry <larrye2...@gmail.com> wrote: > >> Let's say you're a new user and you want to split a string on a >> delimiter in clojure. >> >> Okay, I google "string split" in clojure. >> I find this at http://clojure.github.com/clojure/clojure.string-api.html >> >> (ns your.namespace.here >> (:require '[clojure.string :as str])) > > > (ns your.namespace.here > (:require [clojure.string :as string])) ; <-- note that I don't use ' > > (str/split "foo bar" #" ") ; ["foo" "bar"] > Oops, I meant: (string/split "foo bar" #" ") > > Hope that helps. > > David > -- 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