Skip to content

Instantly share code, notes, and snippets.

@dtchepak
Created March 1, 2012 01:47
Show Gist options
  • Save dtchepak/1946533 to your computer and use it in GitHub Desktop.
Save dtchepak/1946533 to your computer and use it in GitHub Desktop.
recursive zipwith
zipWith' :: (a -> b -> c) -> [a] -> [b] -> [c]
zipWith' _ [] _ = []
zipWith' _ _ [] = []
zipWith' f (a:as) (b:bs) = (f a b):(zipWith' f as bs)
@dtchepak
Copy link
Author

dtchepak commented Mar 1, 2012

@OJ Nice pickup. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment