Entries from 2006-05-02 to 1 day

関数型言語の勉強にSICPを読もう - (25) 2章 - データによる抽象の構築 (107ページ)

楽しい楽しい練習問題。 問題2.73 a expのtype tagを取り出しそれに対応したderivを表から取り出しexpに作用させている。 number?variable?の部分に適用できないのはtype tagがないから。 問題2.73 b deriv本体 type tagを利用して手続きを得る。 number?var…

関数型言語の勉強にSICPを読もう - (24) 2章 - データによる抽象の構築 (98-107ページ)

問題2.68 (define (encode message tree) (if (null? message) '() (append (encode-symbol (car message) tree) (encode (cdr message) tree)))) (define (encode-symbol char tree) (define (list-have? l e) (cond ((null? l) #f) ((equal? (car l) e) #t…

for-eachでtraceって

定義した手続きに対して一つ一つ (trace a) (trace b) (trace c)と書くのが面倒になってきました。なので以下のように書いてみたのですが (define (a hoge) hoge) (define (b hoge) hoge) (use slib) (require 'trace) (for-each trace (list a b)) gosh> **…

ひげ かっこいい

ひげ かっこいい - Google 検索

タブとスペースの話

コードを書くときのインデントをタブにするのかスペースにするのかという話。 Charsbar::Note - タブとスペースの話 最速インターフェース研究会 :: タブとスペースと萌ディタの話 404 Blog Not Found:タブのスペース化はタブ幅よりも重要である subtechグル…

Mr.&Mrs.スミス

Mr.&Mrs.スミス プレミアム・エディションposted with amazlet on 06.04.30ジェネオン エンタテインメント (2006/04/05)Amazon.co.jp で詳細を見る 新ブラピ夫妻の映画。 アンジェリーナ・ジョリーは、People誌で、World's Most Beautiful People 2006 に選…