func format(format, *args):
Returns a string based on the format string format
which is printf
-esque in nature and consumes arguments from args
. Valid specifiers are %s
for strings and %d
for numbers.
func join(list, separator):
Concatenates list
into a string inserting separator
between each item in list.
func split(str, separator):
Splits the string str
at each instance of the string separator
, returning a list of the split string.
func lcp(strings):
Returns the longest common prefix of the strings in strings
. e.g. lcp(["aab", "aca", "a"])
will return "a"
while lcp(["aab", "aca", "b"])
will return ""
.
cvd_to_html ©2006-2007 Laurence Tratt