mmsyn5-0.2.1.0: Various additional operations on lists

Copyright(c) OleksandrZhabenko 2019
LicenseMIT
Maintainerolexandr543@yahoo.com
Safe HaskellSafe
LanguageHaskell2010

Data.List.InnToOut

Contents

Description

Various additional operations on lists.

Synopsis
  • mapI :: (a -> Bool) -> (a -> [a]) -> [a] -> [a]
  • mapI2 :: (a -> Bool) -> (a -> b) -> (a -> [b]) -> [a] -> [b]

Operation to apply a function that creates an inner list to an element of the outer list

mapI :: (a -> Bool) -> (a -> [a]) -> [a] -> [a] Source #

Function that applies additional function f :: a -> [a] to a if p a = True

mapI2 :: (a -> Bool) -> (a -> b) -> (a -> [b]) -> [a] -> [b] Source #

Function that applies additional function f :: a -> b to a if p a = True and otherwise another function g :: a -> [b] to [a] to obtain [b]