Re: How do you use Data.Text.intersperse :: Char -> Text -> Text?

Andreas Abel <[email protected]> Sun, 27 Jun 2021 07:43:55 +0300
Newsgroups gmane.comp.lang.haskell.libraries
Message-ID <[email protected]>
 > `intersperse :: Char -> Text -> Text`

Yeah, that looks silly indeed.  Should be pruned or marked as spam.

On 2021-06-27 01:33, Andrew Lelechenko wrote:
> I know applications for `intercalate :: Text -> [Text] -> Text`: `unwords`, `unlines`, etc. But what is `intersperse :: Char -> Text -> Text` good for? Am I correct assuming that its sole merit is to mimic `Data.List` API? Note that `Data.List.intersperse` is polymorphic and is exceedingly rarely used for `Char -> String -> String`.
> 
> Best regards,
> Andrew
> _______________________________________________
> Libraries mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
> 
_______________________________________________
Libraries mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries