On Wed, Jun 29, 2011 at 17:45, Timothy Washington <[email protected]> wrote:
> That's what I thought too, but I didn't see it in the source. I also fired
> up the repl and tried some of the functions from str-utils2, and they
> weren't there...
> $ lein repl
> user=> (require 'clojure.string)
> nil
> user=> (clojure.string/contains "Tim" "im")
> CompilerException java.lang.RuntimeException: No such var:
> clojure.string/contains, compiling:(NO_SOURCE_PATH:6)

Yea, i miss that one too.

(defn contains? [^String big ^String little]
    (not (neg? (.indexOf big little))))

> user=> (clojure.string/re-sub #"fu" "xx" "fubar")
> CompilerException java.lang.RuntimeException: No such var:
> clojure.string/re-sub, compiling:(NO_SOURCE_PATH:14)

clojure.string/replace

> But 'capitalize' (formerly in 'contrib.string' and 'contrib.str-utils2') is
> now in clojure.string:
> user=> (clojure.string/capitalize "fubar")
> "Fubar"
>
>
> It'd be nice to have everything that was in
> contrib.{string,str-utils,str-utils2}

I guess not everything was judged sufficiently good or of sufficiently
general utility for inclusion in core.

> Tim Washington
> [email protected]
> 416.843.9060
>
>
> On Wed, Jun 29, 2011 at 11:28 AM, Meikel Brandmeyer <[email protected]> wrote:
>>
>> Hi,
>>
>> I think they moved to clojure.string.
>>
>> Sincerely
>> Meikel
>>
>> --
>> 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 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 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

Reply via email to