With a sepacialized splitter:
(defun split-string (string)
(loop
:with in-word := nil
:with result := '()
:with start := 0
:for pos :from 0
:for chr :across string
:do (if in-word
(when (char= #\space chr)
(setf in-word nil)
(push (subseq string start pos) result))
(when (char/= #\space chr)
(setf start pos
in-word t)))
:finally (when in-word
(push (subseq string start pos) result))
(return (nreverse result))))
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 59 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 19:38:34 |
| Calls: | 810 |
| Calls today: | 1 |
| Files: | 1,287 |
| D/L today: |
10 files (21,017K bytes) |
| Messages: | 194,291 |