2013年11月4日月曜日

開発環境

計算機プログラムの構造と解釈(Gerald Jay Sussman(原著)、Julie Sussman(原著)、Harold Abelson(原著)、和田 英一(翻訳)、ピアソンエデュケーション、原書: Structure and Interpretation of Computer Programs (MIT Electrical Engineering and Computer Science)(SICP))の4(超言語的抽象)、4.4(論理型プログラミング)、4.4.4(質問システムの実装)、4.4.4.6(ストリーム演算)、4.4.4.7(質問の構文手続き)、4.4.4.8(フレームと束縛)、問題 4.74を解いてみる。

その他参考書籍

問題 4.74

a. 書けた式を補う。

コード(BBEdit)

(define (simple-flatten stream)
  (streamp-map stream-car
               (stream-filter (lambda (s)
                                (not (stream-null? s)))
                              stream)))

b.

変更しても質問システムの振る舞いは変わらない。

0 コメント:

コメントを投稿