1.2.0 permalink Arrow_down_16x16
  • (tail n s)
Returns the last n characters of s.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/string.clj:133 top

(defn ^String tail
  "Returns the last n characters of s."
  [n ^String s]
  (if (< (count s) n)
    s
    (.substring s (- (count s) n))))
Vars in clojure.contrib.string/tail: - < count defn
Used in 0 other vars

Comments top

No comments for tail. Log in to add a comment.