diff --git a/module/srfi/srfi-13.mes b/module/srfi/srfi-13.mes index c4e34c46..caf31a00 100644 --- a/module/srfi/srfi-13.mes +++ b/module/srfi/srfi-13.mes @@ -58,3 +58,8 @@ (define (string-drop s n) (list->string (list-tail (string->list s) n))) + +(define (string-delete pred s) + (let ((p (if (procedure? pred) pred + (lambda (c) (not (eq? pred c)))))) + (list->string (filter p (string->list s)))))