2009-07-16から1日間の記事一覧
30分プログラム、その621。ClojureのcondをSchemeでも使いたい。ClojureのCondは余計な括弧を省略できるらしいです。 (define (f n) (cond (even? n) "this is even" (odd? n) "this is odd")) 括弧が本当に余計なのかどうかはよく分からないけれど、とりあ…
第2回プログラム等価性クイズ - sumiiのブログの答え。
30分プログラム、その621。ClojureのcondをSchemeでも使いたい。ClojureのCondは余計な括弧を省略できるらしいです。 (define (f n) (cond (even? n) "this is even" (odd? n) "this is odd")) 括弧が本当に余計なのかどうかはよく分からないけれど、とりあ…
第2回プログラム等価性クイズ - sumiiのブログの答え。