Copyright | (c) Oleksandr Zhabenko 2019-2024 |
---|---|
License | MIT |
Maintainer | oleksandr.zhabenko@yahoo.com |
Safe Haskell | None |
Language | Haskell2010 |
Operations to apply a function or two different functions to an element of the outer list (some of them create inner list)
mapI :: (a -> Bool) -> (a -> [a]) -> [a] -> [a] Source #
Function that applies additional function f :: a -> [a]
to a
if p :: a -> Bool
and p a = True
map2I :: (a -> Bool) -> (a -> [[a]]) -> [a] -> [a] Source #
Function that applies additional function f :: a -> [[a]]
to a
if p :: a -> Bool
and p a = True