mirror of
https://github.com/zeroflag/fcl.git
synced 2025-01-11 20:01:10 +01:00
Update README.md
This commit is contained in:
parent
92444248c2
commit
325d49e8fd
1 changed files with 24 additions and 0 deletions
24
README.md
24
README.md
|
@ -238,4 +238,28 @@ Lists are java.util.LinkedHashMap instances and garbage collected automatically
|
||||||
1 5 upto \ creates a list like [ 1 2 3 4 ]
|
1 5 upto \ creates a list like [ 1 2 3 4 ]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```forth
|
||||||
|
\ adds 5 to the end of the list
|
||||||
|
[ 1 2 3 4 ] dup 5 add
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
```forth
|
||||||
|
\ prepends 0 to the beginning of the list
|
||||||
|
[ 1 2 3 4 ] dup 0 prep
|
||||||
|
```
|
||||||
|
|
||||||
|
```forth
|
||||||
|
[ 1 2 3 ] size \ gets the size of the list
|
||||||
|
```
|
||||||
|
|
||||||
|
```forth
|
||||||
|
[ 1 2 3 4 ] 2 at \ gets the second item of the list ( indexing is zero based )
|
||||||
|
```
|
||||||
|
|
||||||
|
```forth
|
||||||
|
alist clear \ removes all items from the list
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## HTTP
|
## HTTP
|
||||||
|
|
Loading…
Reference in a new issue