subs

functionsince v0.0-927 clojure.core/subsEdit
(subs s start)
(subs s start end)

Details:

Returns the substring of s beginning at start inclusive, and ending at end exclusive.

end defaults to the length of the string.


Source docstring:
Returns the substring of s beginning at start inclusive, and ending
at end (defaults to length of string), exclusive.
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn subs
  ([s start] ^string (.substring s start))
  ([s start end] ^string (.substring s start end)))