Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Text.concat : Text -> [Text] -> Text #76

Open
jdan opened this issue Feb 28, 2021 · 0 comments
Open

Text.concat : Text -> [Text] -> Text #76

jdan opened this issue Feb 28, 2021 · 0 comments

Comments

@jdan
Copy link

jdan commented Feb 28, 2021

Needed to concatenate an array of Texts and didn't find anything in the standard library so I thought I'd propose it here.

Inspired by OCaml's String.concat sep sl/

Code review

The changes summarized below are available for you to review, using the
following command:

pull-request.load https://github.com/unisonweb/base:.trunk https://github.com/jdan/unisoncode:.prs.base.join

Added definitions:

 Text.concat           : Text -> [Text] -> Text (+1 metadata)
 Text.concat.tests.ex1 : [Result] (+2 metadata)
 Text.concat.tests.ex2 : [Result] (+2 metadata)
 Text.concat.tests.ex3 : [Result] (+2 metadata)
@jdan jdan changed the title Text.concat sep ls Text.concat : Text -> [Text] -> Text Feb 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant