| match-split-list | ||
|---|---|---|
| Prev | Next | |
(match-split-list string target-list)
Splits string at every target in target-list with (match-split), returning the whole collection of tokens as a list.
The string to split.
A list of target strings which are the delimters between tokens.
Norman Walsh, <ndw@nwalsh.com>
(define (match-split-list string target-list)
;; Splits a string at a list of targets and returns the resulting list of tokens
(let loop ((result (list string)) (tlist target-list))
(if (null? tlist)
result
(loop (match-split-string-list result (car tlist))
(cdr tlist)))))| Prev | Home | Next |
| map | Up | match-split-string-list |