Test.Hspec.TidyFormatter.Internal
Contents
Description
tidy :: Formatter Source #
mapLast :: (a -> a) -> [a] -> [a] Source #
Map the last element.
>>> mapLast (+1) [1,2,3] [1,2,4]
>>>
mapLast (+1) [1,2,3]
append :: Semigroup a => [a] -> a -> [a] infixl 3 Source #
Append the last item monoidally with the given value.
>>> [[1],[2,3]] `append` [4,5] [[1],[2,3,4,5]]
[[1],[2,3]] `append` [4,5]