Back

truncate (clj)

(source)

function

(truncate string length suffix) (truncate string length)
Truncate a string with suffix (ellipsis by default) if it is longer than specified length.

Examples