Skip to content

Instantly share code, notes, and snippets.

@rinotc
Created April 29, 2021 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rinotc/6639b1545ce705fb9a7c5c368e5b05c3 to your computer and use it in GitHub Desktop.
Save rinotc/6639b1545ce705fb9a7c5c368e5b05c3 to your computer and use it in GitHub Desktop.
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