Created
March 1, 2012 01:47
-
-
Save dtchepak/1946533 to your computer and use it in GitHub Desktop.
recursive zipwith
This file contains hidden or 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 (a:as) (b:bs) = (f a b):(zipWith' f as bs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@OJ Nice pickup. Thanks.