top page > computer > haskell > web_lecture > for_programmer > zipwith_foldr.html
更新日:
文責: 重城良国

関数foldrで関数zipWithを定義

zipWithF :: (a -> b -> c) -> [a] -> [b] -> [c]

定義

zipWithF op = foldr s (const [])
where
s x f (y :ys) = x `op` y : f ys
s _ _ _ = []

「関数foldrで関数zipを定義」へもどる 「1から学ぶHaskell」トップへ

正当なCSSです! HTML5 Powered with CSS3 / styling, and Semantics