From: Clark Grubb (clarkgrubb at gmail.com) Date: Sat Jul 9 20:38:52 EDT 2011 |
|
This seems to be a bug. Here is the Racket behavior and Haskell behavior for comparison. ====================== $ racket Welcome to Racket v5.1.1. > (foldl - 0 '(1 2 3)) 2 > (foldr - 0 '(1 2 3)) 2 ====================== $ ghci GHCi, version 6.10.4: http://www.haskell.org/ghc/ :? for help Prelude> foldl (-) 0 [1,2,3] -6 Prelude> foldr (-) 0 [1,2,3] 2
Posted on the dev mailing list. |
|