Safe Haskell | Safe-Inferred |
---|---|

Language | Haskell2010 |

Extra utility functions to manipulate `Series`

.

- zipLogic :: MonadLogic m => m a -> m b -> m (a, b)
- zipLogic3 :: MonadLogic m => m a -> m b -> m c -> m (a, b, c)

# Zipping

zipLogic :: MonadLogic m => m a -> m b -> m (a, b) Source

*One-to-One* zipping of 2 `MonadLogic`

instances. You can use for
`Series`

like this:

`>>>`

[('a',0),('b',1),('c',-1)]`list 2 $ (series :: Series Identity Char) `zipLogic` (series :: Series Identity Int)`

Notice the difference with `><`

:

`>>>`

[('a',0),('b',0),('a',1),('c',0),('a',-1),...,('b',-2),('c',-2)]`list 2 $ (series :: Series Identity Char) >< (series :: Series Identity Int)`

zipLogic3 :: MonadLogic m => m a -> m b -> m c -> m (a, b, c) Source

*One-to-One* zipping of 3 `MonadLogic`

instances. You can use for
`Series`

like this:

`>>>`

[('a',0,""),('b',1,"a"),('c',-1,"b"),('d',2,"aa")]`list 3 $ zipLogic3 (series :: Series Identity Char) (series :: Series Identity Int) (series :: Series Identity Text)`