Skip to content

Commit ec8547d

Browse files
committed
remove fix
1 parent 735874b commit ec8547d

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,4 +642,13 @@ undefined
642642

643643
###insert(list, index, value)
644644

645-
The *insert()* function takes a list, a number index, and a value, to insert that value at that index, while moving all other values one over to accomodate for the new value. It is non-nestable
645+
The *insert()* function takes a list, a number index, and a value, to insert that value at that index, while moving all other values one over to accomodate for the new value. It is non-nestable
646+
647+
```
648+
>> =(a, list(1, 2, 3))
649+
undefined
650+
>> insert(a, 1, true)
651+
[]
652+
>> do(a)
653+
[1,true,2,3]
654+
```

builds/WebMain.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ var STD = {
397397
//returns removed element
398398
"remove":function(args){
399399
var elems = get2Args(this, args);
400-
return elems[0] + ".splice(" + elems[1] + ",1," + ")";
400+
return elems[0] + ".splice(" + elems[1] + ",1)";
401401
},
402402
//FIND FUNCTION works on lists or strings
403403
//returns -1 if not found, otherwise return first index.

src/stdlib.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ var STD = {
275275
//returns removed element
276276
"remove":function(args){
277277
var elems = get2Args(this, args);
278-
return elems[0] + ".splice(" + elems[1] + ",1," + ")";
278+
return elems[0] + ".splice(" + elems[1] + ",1)";
279279
},
280280
//FIND FUNCTION works on lists or strings
281281
//returns -1 if not found, otherwise return first index.

0 commit comments

Comments
 (0)