Add partitioning functions to Data.List
span have recursive equivalents
spanRec that apply the same function to the remainder, i.e.
takeRec i xs = let (hs,ts) = splitAt i xs in hs : takeRec i xs spanRec p xs = let (hs,ts) = span p xs in hs : spanRec p xs
and the more generic version of
genericTakeRec i xs = let (hs,ts) = genericSplitAt i xs in hs : genericTakeRec i xs
These functions, to me, are in the same league as
group, can be added with little chance of nameclashes on functions with a different meaning and are not named compositions.