Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define string concatenation #187

Merged
merged 2 commits into from
Jan 4, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions infra.bs
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,22 @@ interspersed <a>ASCII whitespace</a>.
<li><p>Return <var>tokens</var>.
</ol>

<p>To <dfn export for=string lt=concatenate|concatenation>concatenate</dfn> a <a for=/>list</a> of
<a for=/>strings</a> <var>list</var>, using an optional separator string <var>separator</var>, run
these steps:

<ol>
<li><p>If <var>list</var> <a for=list>is empty</a>, then return the empty string.

<li><p>If <var>separator</var> is not given, then set <var>separator</var> to the empty string.

<li><p>Return a <a for=/>string</a> whose contents are <var>list</var>'s <a for=list>items</a>, in
order, separated from each other by <var>separator</var>.
</ol>

<p class=example id=example-string-concatenate>To serialize a set <var>set</var>, return the
<a for=string>concatenation</a> of <var>set</var> using U+0020 SPACE.


<h2 id=data-structures>Data structures</h2>

Expand Down Expand Up @@ -1076,6 +1092,7 @@ Leonid Vasilyev,
Malika Aubakirova,
Michael™ Smith,
Mike West,
Ms2ger,
Philip Jägenstedt,
Rashaun "Snuggs" Stovall,
Sergey Shekyan,
Expand Down