Re:
Frederic Udina <[email protected]> Mon, 8 Apr 2002 21:02:34 +0200 (MET DST)
| Newsgroups | gmane.lisp.statistics |
|---|---|
| Message-ID | <[email protected]> |
I didn't got the question, so just to check the list: (sort '(#\a #\r #\e #\k) #'char<= ) would be the standard way to solve the problem of sorting a list of characters. The second argument to sort is the predicate list used to compare the elements of the list. best, On Mon, 8 Apr 2002, kjetil halvorsen wrote: ~~~> (char-int #\a) ~~~97 ~~~> ~~~ ~~~Kjetil Halvorsen ~~~ ~~~Elbanhawy wrote: ~~~> ~~~> Hi everybody, I am new to lisp and wanted top know how to convert a ~~~> char to its ascii number for sorting a list of characters....please ~~~> help. ~~~> Thanks, ~~~> ~~~> Sherif ~~~ Frederic Udina ____________________________________________________________________ <[email protected]> Dept. D'Economia i Empresa Universitat Pompeu Fabra Ramon Trias Fargas, 25-27 08005 Barcelona SPAIN tel. 34- 935421756/1763 fax: 34- 935421746 http://libiya.upf.es/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ There are many here among us who feel that life is but a joke B.Dy.