Small improvement

Rearranged so that `Immutable` is above `Mutative` in both examples.
This commit is contained in:
Michael Fasani 2020-05-28 23:16:42 +02:00 committed by GitHub
parent cb4e03077f
commit 9827f09f5c
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