Merge pull request #1446 from Fasani/patch-1

Small improvement
This commit is contained in:
Rico Sta. Cruz 2020-06-14 10:46:44 +10:00 committed by GitHub
commit a8475e711e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -35,6 +35,12 @@ re = list.splice(1,2) // re = [b,c] list == [a,d,e]
### Adding items
#### Immutable
```bash
list.concat([X,Y]) // → [_,_,_,_,_,X,Y]
```
#### Mutative
```bash
@ -43,12 +49,6 @@ list.unshift(X) // list == [X,_,_,_,_,_]
list.splice(2, 0, X) // list == [_,_,X,_,_,_]
```
#### Immutable
```bash
list.concat([X,Y]) // → [_,_,_,_,_,X,Y]
```
### Inserting
```bash