Skip to content

Commit

Permalink
added history entry
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-snezhko committed Jun 27, 2023
1 parent dba9d1a commit 3c68da5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions stdlib/list.gr
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ provide let rec flatten = list => {
* @throws Failure(String): When `index` is more than 0 and greater than the list size
*
* @since v0.1.0
* @history v0.6.0: Swapped order of `index` and `value` parameters
*/
provide let rec insert = (index, value, list) => {
if (index < 0) {
Expand Down
13 changes: 10 additions & 3 deletions stdlib/list.md
Original file line number Diff line number Diff line change
Expand Up @@ -664,9 +664,16 @@ List.flatten([[1, 2], [3, 4]]) // [1, 2, 3, 4]

### List.**insert**

<details disabled>
<summary tabindex="-1">Added in <code>0.1.0</code></summary>
No other changes yet.
<details>
<summary>Added in <code>0.1.0</code></summary>
<table>
<thead>
<tr><th>version</th><th>changes</th></tr>
</thead>
<tbody>
<tr><td><code>next</code></td><td>Swapped order of `index` and `value` parameters</td></tr>
</tbody>
</table>
</details>

```grain
Expand Down

0 comments on commit 3c68da5

Please sign in to comment.