Dynamic.String
char-at
Dynamic
gets the nth character of a string.
Example Usage:
(String.char-at "hi" 1) ; => \i
concat
Dynamic
concatenates a list of strings together.
Example Usage:
(String.concat ["hi " "there"]) ; => "hi there"
index-of
Dynamic
gets the index of a character in a string (or returns -1
if the character is not found).
Example Usage:
(index-of "hi" \i) ; => 1
slice
Dynamic
creates a substring from a beginning index to an end index.
Example Usage:
(String.slice "hello" 1 3) ; => "ell"
split-on
Dynamic
split a string at separator.
Example Usage:
(String.split-on "-" "hi-there") ; => ["hi " "there"]
to-array
Dynamic
(to-array s)
Converts a string to an array of strings of each of its characters.