Sorting a list of words in LISP!
hi!
how can i sort a list of WORDS in LISP? (is there any function in LISP that is equivalent to C++'s strcmp?) (can i get the ASCII code of a character in LISP?) thank you |
ANSI Common Lisp has a sort function and a few string comparison functions.
Code:
(sort sequence predicate &key key) Code:
(sort '("foo" "baz" "bar") #'string-lessp) |
All times are GMT -5. The time now is 06:16 PM. |