2008-04-24 rubyのselectと同じ動きをするschemeコード 久しぶりにリスト内包表記を使った。 >>(fold (lambda (x y) (if (> x 3) `(,@y ,x) y)) () '(5 1 4 2 3 4 5 5)) =>(5 4 4 5 5)