Is there any function to automatically make a string uppercase or lowercase or to capitalize the first letter?
I'm also looking to take a string and 'inspect' the first character so with : "example" i would want to get e as a variable.
THanks
(format nil "~@(~A~)" "this is a senTENce.")
samohtvii wrote:I'm also looking to take a string and 'inspect' the first character so with : "example" i would want to get e as a variable.
CL-USER> (char "example" 0)
#\e
(defun vowel-p (char) (find char "aeiou" :test #'char-equal))
Users browsing this forum: No registered users and 1 guest