(define -ayalog '())

括弧に魅せられて道を外した名前のないプログラマ

2011-12-19から1日間の記事一覧

コードの最適化?

ということでちょっとコード書きますよっと。 Scheme手習いから。 (define (insertR new old lat) (cond ((null? lat) '()) (else (cond ((eq? old (car lat)) (cons old (cons new (cdr lat)))) (else (cons old (insertR new old (cdr lat)))))) (define (…