2018-01-29から1日間の記事一覧

3.3.3 テーブルの表現

テーブル表現 (define (lookup key table) (let ( (record (assoc key (cdr table))) ) (if record (cdr record) #f) ) ) ; キーチェック (define (assoc key records) (cond ((null? records) #f) ((equal? key (caar records)) (car records)) (else (asso…