2019-02-27 20:54:19 +00:00
|
|
|
## collections.after_each
|
2019-02-22 20:29:00 +00:00
|
|
|
|
|
|
|
<pre>
|
2019-02-27 20:54:19 +00:00
|
|
|
collections.after_each(<a href="#collections.after_each-separator">separator</a>, <a href="#collections.after_each-iterable">iterable</a>)
|
2019-02-22 20:29:00 +00:00
|
|
|
</pre>
|
|
|
|
|
|
|
|
Inserts `separator` after each item in `iterable`.
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
<table class="params-table">
|
|
|
|
<colgroup>
|
|
|
|
<col class="col-param" />
|
|
|
|
<col class="col-description" />
|
|
|
|
</colgroup>
|
|
|
|
<tbody>
|
2019-02-27 20:54:19 +00:00
|
|
|
<tr id="collections.after_each-separator">
|
2019-02-22 20:29:00 +00:00
|
|
|
<td><code>separator</code></td>
|
|
|
|
<td>
|
|
|
|
required.
|
|
|
|
<p>
|
|
|
|
The value to insert after each item in `iterable`.
|
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2019-02-27 20:54:19 +00:00
|
|
|
<tr id="collections.after_each-iterable">
|
2019-02-22 20:29:00 +00:00
|
|
|
<td><code>iterable</code></td>
|
|
|
|
<td>
|
|
|
|
required.
|
|
|
|
<p>
|
|
|
|
The list into which to intersperse the separator.
|
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
2019-02-27 20:54:19 +00:00
|
|
|
## collections.before_each
|
2019-02-22 20:29:00 +00:00
|
|
|
|
|
|
|
<pre>
|
2019-02-27 20:54:19 +00:00
|
|
|
collections.before_each(<a href="#collections.before_each-separator">separator</a>, <a href="#collections.before_each-iterable">iterable</a>)
|
2019-02-22 20:29:00 +00:00
|
|
|
</pre>
|
|
|
|
|
|
|
|
Inserts `separator` before each item in `iterable`.
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
<table class="params-table">
|
|
|
|
<colgroup>
|
|
|
|
<col class="col-param" />
|
|
|
|
<col class="col-description" />
|
|
|
|
</colgroup>
|
|
|
|
<tbody>
|
2019-02-27 20:54:19 +00:00
|
|
|
<tr id="collections.before_each-separator">
|
2019-02-22 20:29:00 +00:00
|
|
|
<td><code>separator</code></td>
|
|
|
|
<td>
|
|
|
|
required.
|
|
|
|
<p>
|
|
|
|
The value to insert before each item in `iterable`.
|
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2019-02-27 20:54:19 +00:00
|
|
|
<tr id="collections.before_each-iterable">
|
2019-02-22 20:29:00 +00:00
|
|
|
<td><code>iterable</code></td>
|
|
|
|
<td>
|
|
|
|
required.
|
|
|
|
<p>
|
|
|
|
The list into which to intersperse the separator.
|
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
2019-02-27 20:54:19 +00:00
|
|
|
## collections.uniq
|
2019-02-22 20:29:00 +00:00
|
|
|
|
|
|
|
<pre>
|
2019-02-27 20:54:19 +00:00
|
|
|
collections.uniq(<a href="#collections.uniq-iterable">iterable</a>)
|
2019-02-22 20:29:00 +00:00
|
|
|
</pre>
|
|
|
|
|
|
|
|
Returns a list of unique elements in `iterable`.
|
|
|
|
|
|
|
|
Requires all the elements to be hashable.
|
|
|
|
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
<table class="params-table">
|
|
|
|
<colgroup>
|
|
|
|
<col class="col-param" />
|
|
|
|
<col class="col-description" />
|
|
|
|
</colgroup>
|
|
|
|
<tbody>
|
2019-02-27 20:54:19 +00:00
|
|
|
<tr id="collections.uniq-iterable">
|
2019-02-22 20:29:00 +00:00
|
|
|
<td><code>iterable</code></td>
|
|
|
|
<td>
|
|
|
|
required.
|
|
|
|
<p>
|
|
|
|
An iterable to filter.
|
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|