作者 Anonymous [actionscript] 2012-01-31 12:15 (点击下载)

  1. treat :: [a] -> ([a] -> b) -> [b]
  2. treat xs f = treat' [] xs
  3. where
  4. treat' :: [a] -> [a] -> [b]
  5. treat' xs [] = []
  6. treat' xs (y:ys) = f (xs ++ ys) : treat' (xs ++ [y]) ys

提交下面的校正或者修改. (点击这里开始一个新的帖子)
姓名: 在 cookie 中记住我的名字

屏幕抓图:(jpeg 或 png)