-
Notifications
You must be signed in to change notification settings - Fork 0
Strings
(string-alphabetic? [string]) -> boolean
Determines whether all ’letters’ in the string are alphabetic.
(string-alphabetic? "123")
#false
(string-append [string] [string] [string] ...) -> string
Concatenates the characters of several strings.
(string-append "hello" " " "world" " " "good bye")
"hello world good bye"
(string-contains? [string] [string]) -> boolean
Determines whether the first string appears literally in the second one.
(string-contains? "at" "cat")
#true
(string-copy [string]) -> string
Copies a string.
(string-copy "hello")
"hello"
(string-downcase [string]) -> string
Produces a string like the given one with all ’letters’ as lower case.
(string-copy "CaT")
"cat"
(string-length [string]) → natural
Determines the length of a string.
(string-length "hello world")
11
(string-lower-case? [string]) → boolean
Determines whether all ’letters’ in the string are lower case.
(string-lower-case? "hello world")
#true
(string-numeric? [string]) → boolean
Determines whether all ’letters’ in the string are numeric.
(string-numeric? "123")
#true
(string-upcase [string]) → string
Produces a string like the given one with all ’letters’ as upper case.
(string-upcase "cAt")
"CAT"
(string-upper-case? [string]) → boolean
Determines whether all ’letters’ in the string are upper case.
(string-upper-case? "HELLO WORLD")
#true
(string-whitespace? [string]) → boolean
Determines whether all ’letters’ in the string are white space.
(string-whitespace? " ")
#true