/usr/lib/s9fes/help/string-translate is in scheme9 2010.11.13-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | S9 LIB (string-translate string1 string2 string3) ==> string
Translate STRING1 by replacing each instance of a character
that occurs in STRING2 by the character at the corresponding
position in STRING3. STRING-TRANSLATE does not alter STRING1
but returns a fresh string.
(string-translate "a:b:c" ":" "-") ==> "a-b-c"
(string-translate
"hello, world!"
"abcdefghijklmnopqrstuvwxyz"
"nopqrstuvwxyzabcdefghijklm") ==> "uryyb, jbeyq!"
|