13 Jan 23:17
Re: ByteString intercalate semantics??
Don Stewart <dons <at> galois.com>
2009-01-13 22:17:49 GMT
2009-01-13 22:17:49 GMT
vigalchin:
> Hello,
>
> From Hoogle (my friend) ....
>
> intercalate :: [1]ByteString -> [[2]ByteString] -> [3]ByteString [4]Source
> O(n) The [5]intercalate function takes a [6]ByteString and a list of
> [7]ByteStrings and concatenates the list after interspersing the first
> argument between each element of the list.
> So intercalate doesn't do a simple concatenation?
FWIW.
concat . intersperse x == intercalate x
-- Don
RSS Feed