lists 0.2.0 → 0.3.0
raw patch · 2 files changed
+2/−12 lines, 2 files
Files
- lists.cabal +1/−1
- src/Data/Lists.hs +1/−11
lists.cabal view
@@ -1,5 +1,5 @@ name: lists-version: 0.2.0+version: 0.3.0 synopsis: Functions for dealing with lists description: Functions for dealing with lists license: BSD3
src/Data/Lists.hs view
@@ -172,17 +172,7 @@ replace :: Eq a => [a] -> [a] -> [a] -> [a] replace old new l = joins new . splitOn old $ l -{- | Given a delimiter and a list of items (or strings), join the items-by using the delimiter.--Example:--> join "|" ["foo", "bar", "baz"] -> "foo|bar|baz"--}-joins :: [a] -> [[a]] -> [a]-joins delim l = concat (intersperse delim l)--{- | Like 'join', but works with a list of anything showable, converting+{- | Like 'intercalate', but works with a list of anything showable, converting it to a String. Examples: