[Haskell-cafe] how do I intercalate for Data.Text.Lazy.Builder
javran.c at gmail.com
Mon Apr 22 16:38:32 UTC 2019
Darn right! I've checked Foldable, Semigroup and Monoid, never thought
about the function right above intercalate, thanks!
On Mon, Apr 22, 2019 at 2:50 AM Patrick Chilton <chpatrick at gmail.com> wrote:
> 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:
>> Only members subscribed via the mailman list are allowed to post.
Javran (Fang) Cheng
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe