| The Modular DocBook Stylesheets | ||
|---|---|---|
| Prev | DSSSL Library | 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, <norm@berkshire.net>
(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 |
| list-put | Up | match-split-string-list |
Copyright © 1997, 1998 Norman Walsh