Created
April 29, 2021 14:57
-
-
Save rinotc/6639b1545ce705fb9a7c5c368e5b05c3 to your computer and use it in GitHub Desktop.
haskell勉強メモ9 zipWith
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zipWith' :: (a -> b -> c) -> [a] -> [b] -> [c] | |
zipWith' _ [] _ = [] | |
zipWith' _ _ [] = [] | |
zipWith' f (x : xs) (y : ys) = f x y : zipWith' f xs ys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment