The King's Museum

ソフトウェアエンジニアのブログ。

2020-04-17から1日間の記事一覧

Scheme 手習い(7)

第8章:究極の lambda rember-f (define (rember-f test? a l) (cond [(null? l) '()] [(test? (car l) a) (cdr l)] [else (cons (car l) (rember-f test? a (cdr l)))])) リストから要素を削除する rember の派生版。 要素の一致を判定する関数を引数で与…

(c) The King's Museum