zipWith
zipWith :: (a -> b -> c) -> [a] -> [b] -> [c]- Führt zwei Listen elementweise mit einer Funktion zusammen.
zipWith (+) [1,2,3] [4,5,6] = [5,7,9]
Select a result to preview
zipWith :: (a -> b -> c) -> [a] -> [b] -> [c]zipWith (+) [1,2,3] [4,5,6] = [5,7,9]