理系学生日記

おまえはいつまで学生気分なのか

2007-12-28から1日間の記事一覧

問題2-62 (2.3.3 Example: Representing Sets)

要素数nに対して、でunionをとる。 (define (union-set set1 set2) (cond ((null? set1) set2) ((null? set2) set1) (else (let ((x1 (car set1)) (x2 (car set2))) (cond ((< x1 x2) (cons x1 (union-set (cdr set1) set2))) ((= x1 x2) (cons x1 (union-se…

来年の抱負

雑学でも勉強でもなんでもいいんですけど、ぼくはいっつも、いろいろ知っている人っていいなーとか思っていて、普通にジェラシーを感じています。 たぶんですけどいろいろ知っている人は、ぼくが見ている景色とはまったく違う景色を、同じ世界に感じている。…