Skip to content

Instantly share code, notes, and snippets.

@rinotc
Created Apr 29, 2021
Embed
What would you like to do?
haskell勉強メモ9 zipWith
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