Hoogle Search

Within LTS Haskell 24.25 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. zipWith :: (a -> b -> c) -> [a] -> [b] -> [c]

    numhask NumHask.Prelude

    zipWith generalises zip by zipping with the function given as the first argument, instead of a tupling function.

    zipWith (,) xs ys == zip xs ys
    zipWith f [x1,x2,x3..] [y1,y2,y3..] == [f x1 y1, f x2 y2, f x3 y3..]
    
    zipWith is right-lazy:
    >>> let f = undefined
    
    >>> zipWith f [] undefined
    []
    
    zipWith is capable of list fusion, but it is restricted to its first list argument and its resulting list.

    Examples

    zipWith (+) can be applied to two lists to produce the list of corresponding sums:
    >>> zipWith (+) [1, 2, 3] [4, 5, 6]
    [5,7,9]
    
    >>> zipWith (++) ["hello ", "foo"] ["world!", "bar"]
    ["hello world!","foobar"]
    

  2. zipWith :: (a -> b -> c) -> [a] -> [b] -> [c]

    basic-prelude BasicPrelude

    zipWith generalises zip by zipping with the function given as the first argument, instead of a tupling function.

    zipWith (,) xs ys == zip xs ys
    zipWith f [x1,x2,x3..] [y1,y2,y3..] == [f x1 y1, f x2 y2, f x3 y3..]
    
    zipWith is right-lazy:
    >>> let f = undefined
    
    >>> zipWith f [] undefined
    []
    
    zipWith is capable of list fusion, but it is restricted to its first list argument and its resulting list.

    Examples

    zipWith (+) can be applied to two lists to produce the list of corresponding sums:
    >>> zipWith (+) [1, 2, 3] [4, 5, 6]
    [5,7,9]
    
    >>> zipWith (++) ["hello ", "foo"] ["world!", "bar"]
    ["hello world!","foobar"]
    

  3. zipWith :: (a -> b -> c) -> [a] -> [b] -> [c]

    ghc-lib-parser GHC.Prelude.Basic

    zipWith generalises zip by zipping with the function given as the first argument, instead of a tupling function.

    zipWith (,) xs ys == zip xs ys
    zipWith f [x1,x2,x3..] [y1,y2,y3..] == [f x1 y1, f x2 y2, f x3 y3..]
    
    zipWith is right-lazy:
    >>> let f = undefined
    
    >>> zipWith f [] undefined
    []
    
    zipWith is capable of list fusion, but it is restricted to its first list argument and its resulting list.

    Examples

    zipWith (+) can be applied to two lists to produce the list of corresponding sums:
    >>> zipWith (+) [1, 2, 3] [4, 5, 6]
    [5,7,9]
    
    >>> zipWith (++) ["hello ", "foo"] ["world!", "bar"]
    ["hello world!","foobar"]
    

  4. strictZipWith :: (a -> b -> c) -> [a] -> [b] -> [c]

    ghc-lib-parser GHC.Utils.Misc

    No documentation available.

  5. zipWith :: (a -> b -> c) -> [a] -> [b] -> [c]

    prelude-compat Data.List2010

    No documentation available.

  6. zipWith :: (a -> b -> c) -> [a] -> [b] -> [c]

    prelude-compat Prelude2010

    No documentation available.

  7. zipWith :: (a -> b -> c) -> [a] -> [b] -> [c]

    mixed-types-num Numeric.MixedTypes.PreludeHiding

    zipWith generalises zip by zipping with the function given as the first argument, instead of a tupling function.

    zipWith (,) xs ys == zip xs ys
    zipWith f [x1,x2,x3..] [y1,y2,y3..] == [f x1 y1, f x2 y2, f x3 y3..]
    
    zipWith is right-lazy:
    >>> let f = undefined
    
    >>> zipWith f [] undefined
    []
    
    zipWith is capable of list fusion, but it is restricted to its first list argument and its resulting list.

    Examples

    zipWith (+) can be applied to two lists to produce the list of corresponding sums:
    >>> zipWith (+) [1, 2, 3] [4, 5, 6]
    [5,7,9]
    
    >>> zipWith (++) ["hello ", "foo"] ["world!", "bar"]
    ["hello world!","foobar"]
    

  8. zipWith :: (a -> b -> c) -> [a] -> [b] -> [c]

    LambdaHack Game.LambdaHack.Core.Prelude

    zipWith generalises zip by zipping with the function given as the first argument, instead of a tupling function.

    zipWith (,) xs ys == zip xs ys
    zipWith f [x1,x2,x3..] [y1,y2,y3..] == [f x1 y1, f x2 y2, f x3 y3..]
    
    zipWith is right-lazy:
    >>> let f = undefined
    
    >>> zipWith f [] undefined
    []
    
    zipWith is capable of list fusion, but it is restricted to its first list argument and its resulting list.

    Examples

    zipWith (+) can be applied to two lists to produce the list of corresponding sums:
    >>> zipWith (+) [1, 2, 3] [4, 5, 6]
    [5,7,9]
    
    >>> zipWith (++) ["hello ", "foo"] ["world!", "bar"]
    ["hello world!","foobar"]
    

  9. zipWith :: (a -> b -> c) -> [a] -> [b] -> [c]

    LambdaHack Game.LambdaHack.Core.Prelude

    zipWith generalises zip by zipping with the function given as the first argument, instead of a tupling function.

    zipWith (,) xs ys == zip xs ys
    zipWith f [x1,x2,x3..] [y1,y2,y3..] == [f x1 y1, f x2 y2, f x3 y3..]
    
    zipWith is right-lazy:
    >>> let f = undefined
    
    >>> zipWith f [] undefined
    []
    
    zipWith is capable of list fusion, but it is restricted to its first list argument and its resulting list.

    Examples

    zipWith (+) can be applied to two lists to produce the list of corresponding sums:
    >>> zipWith (+) [1, 2, 3] [4, 5, 6]
    [5,7,9]
    
    >>> zipWith (++) ["hello ", "foo"] ["world!", "bar"]
    ["hello world!","foobar"]
    

  10. zipWith :: (a -> b -> c) -> [a] -> [b] -> [c]

    cabal-install-solver Distribution.Solver.Compat.Prelude

    zipWith generalises zip by zipping with the function given as the first argument, instead of a tupling function.

    zipWith (,) xs ys == zip xs ys
    zipWith f [x1,x2,x3..] [y1,y2,y3..] == [f x1 y1, f x2 y2, f x3 y3..]
    
    zipWith is right-lazy:
    >>> let f = undefined
    
    >>> zipWith f [] undefined
    []
    
    zipWith is capable of list fusion, but it is restricted to its first list argument and its resulting list.

    Examples

    zipWith (+) can be applied to two lists to produce the list of corresponding sums:
    >>> zipWith (+) [1, 2, 3] [4, 5, 6]
    [5,7,9]
    
    >>> zipWith (++) ["hello ", "foo"] ["world!", "bar"]
    ["hello world!","foobar"]
    

Page 3 of many | Previous | Next