In http://clojure.github.com/clojure-contrib/str-utils-api.html it is written that
String utilities for Clojure
Deprecated since clojure-contrib version 1.2
but it is not written what should I use instead. There are convenient functions like "chomp" or "re-partition" there.
What should I do to port old clojure v1.1 code to the recent version? Should I just copy functions from clojure-contrib directly to the source code?
Some of the functionality is in the clojure.string namespace. E.g., chomp
exists as trim-newline
, str-join
is join
.
You can use clojure.contrib.string instead of str-utils contrib
(use 'clojure.contrib.string)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With