Popularity
1.3
Declining
Activity
0.0
Stable
2
2
0

Monthly Downloads: 12
Programming language: Haskell
License: LicenseRef-PublicDomain
Tags: Data     List    

list-zip-def alternatives and similar packages

Based on the "list" category.
Alternatively, view list-zip-def alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of list-zip-def or a related project?

Add another 'list' Package

README

list-zip-def

Provides zip functions that use a given default value, whenever one list is exhausted, but not all.

Prelude> import Data.List.Zip
Prelude Data.List.Zip> zipDef 0 'x' [1, 2, 3] "a"
[(1,'a')(2,'x')(3,'x')]

The resulting list spine is also lazy:

Prelude Data.List.Zip> let xs = zipDef 0 'x' [1, 2, 3 :: Int] "a"
Prelude Data.List.Zip> :sprint xs
xs = _
Prelude Data.List.Zip> import Data.Maybe
Prelude Data.List.Zip Data.Maybe> listToMaybe xs 
Just (1,'a')
Prelude Data.List.Zip Data.Maybe> :sprint xs
xs = (1,'a') : _