Add the 'not' operator to Fun primitives
This commit is contained in:
parent
0a0af17124
commit
0ff9052a81
1 changed files with 5 additions and 0 deletions
|
@ -3,6 +3,7 @@ return {
|
||||||
compose: compose,
|
compose: compose,
|
||||||
defined: defined,
|
defined: defined,
|
||||||
id: id,
|
id: id,
|
||||||
|
not: not,
|
||||||
insert: insert,
|
insert: insert,
|
||||||
map: map,
|
map: map,
|
||||||
mapFilter: mapFilter,
|
mapFilter: mapFilter,
|
||||||
|
@ -32,6 +33,10 @@ function id(x) {
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function not(x) {
|
||||||
|
return !x;
|
||||||
|
}
|
||||||
|
|
||||||
function insert(obj, t, comparer, min, max) {
|
function insert(obj, t, comparer, min, max) {
|
||||||
min = defined(min) ? min : 0;
|
min = defined(min) ? min : 0;
|
||||||
max = defined(max) ? max : t.length;
|
max = defined(max) ? max : t.length;
|
||||||
|
|
Loading…
Reference in a new issue