From 14ecdb7cf876cccf96ce7fd7f892b19f36fbaad9 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Fri, 5 Nov 1999 05:38:15 +0000 Subject: [PATCH] SPLIT-LIST now implemented in "utils.scm". --- v7/src/edwin/snr.scm | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/v7/src/edwin/snr.scm b/v7/src/edwin/snr.scm index 9dd88d253..dd7fe4710 100644 --- a/v7/src/edwin/snr.scm +++ b/v7/src/edwin/snr.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: snr.scm,v 1.52 1999/08/20 20:35:53 cph Exp $ +;;; $Id: snr.scm,v 1.53 1999/11/05 05:38:15 cph Exp $ ;;; ;;; Copyright (c) 1995-1999 Massachusetts Institute of Technology ;;; @@ -3678,15 +3678,6 @@ With prefix arg, replaces the file with the list information." (lambda () 'LESS) (lambda () 'GREATER))) -(define (split-list headers predicate) - (let loop ((headers headers) (satisfied '()) (unsatisfied '())) - (cond ((null? headers) - (values satisfied unsatisfied)) - ((predicate (car headers)) - (loop (cdr headers) (cons (car headers) satisfied) unsatisfied)) - (else - (loop (cdr headers) satisfied (cons (car headers) unsatisfied)))))) - (define (prefix-matcher prefix) (let ((plen (string-length prefix))) (lambda (x y) -- 2.25.1