Gauche

tree-map-fold

tree-map-foldとfoldで引数の順番が違ってちょっとはまった. foldは(fold proc seed lis ...)だけどtree-map-foldは(tree-map-fold tree-map proc seed). まぁ,tree-map-foldにtree-mapを沢山渡したりはあんまりしない気はするけど,これはどうなんだろう…

tree-mapの謎

hash-table-mapとhash-table-for-eachはあるのに,tree-map-mapとtree-map-for-eachは何故無いんだろう.語呂が悪いから? hash-table(手続き)はあるのに,tree-mapはない. tree-map-minはペアを返すのに,tree-map-successorは多値を返す. gosh> (define …

Gaucheのmakeに失敗

Gaucheのバージョンを上げようと思ったら, $ tar zxvf Gauche-0.8.14.tgz $ cd Gauche-0.8.14 $ ./configure --enable-threads=pthreads --enable-multibyte=utf-8 $ makeで make: *** [all] Error 2とか言われた. $ cd src $ ./gosh -ftest Illegal instr…