Skip to content

Commit 8e24939

Browse files
committed
update
1 parent ec8547d commit 8e24939

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,4 +651,43 @@ undefined
651651
[]
652652
>> do(a)
653653
[1,true,2,3]
654+
```
655+
656+
###remove(list, index)
657+
658+
Takes a list and a number index, to remove the value at that index and also return it in a new list of it's own. Is nestable.
659+
660+
```
661+
>> =(a, list(1, 2, 34))
662+
undefined
663+
>> remove(a, 1)
664+
[2]
665+
>> do(a)
666+
[1,34]
667+
```
668+
669+
###find(list, arg1)
670+
671+
Takes a list and one othr argument, and checks if the argument is a value in the list. If it is, it will return the first index of it recurring. Otherwise, it will return -1. Cannot be extended with *args()*.
672+
673+
```
674+
>> =(a, list(1, 2, true, false, true))
675+
undefined
676+
>> find(a, true)
677+
2
678+
>> find(a, 3)
679+
-1
680+
```
681+
682+
###&(list1, list2)
683+
684+
The *&()* function takes two lists as arguments and fuses them together and returns a new list. Cannot be extended with *args()*.
685+
686+
```
687+
>> =(first, list(1))
688+
undefined
689+
>> &(first, list(4))
690+
[1,4]
691+
>> do(first)
692+
[1]
654693
```

0 commit comments

Comments
 (0)