[Haskell-cafe] how do I intercalate for Data.Text.Lazy.Builder
Patrick Chilton
chpatrick at gmail.com
Mon Apr 22 09:50:11 UTC 2019
If you want to join a list of Builders with a delimiter, you can use
`mconcat (intersperse d xs)`
This works for any Monoid.
On Mon, Apr 22, 2019 at 10:59 AM Javran Cheng <javran.c at gmail.com> wrote:
> Hi Cafe,
>
> Just a quick question, the title says it all: how do I intercalate for the
> Builder?
> Given what it does, it makes sense that things like `intercalate` should
> be out of the box,
> yet I feel the export list of Builder is very limited.
>
> --
> Javran (Fang) Cheng
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20190422/f9eb43d7/attachment.html>
More information about the Haskell-Cafe
mailing list