remove negation operator on integers
This commit is contained in:
parent
3d3942a80f
commit
9d1bd0d489
@ -12,10 +12,7 @@ const addUnaryIntegerOperationsTo = (env: Environment) => {
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
for (const { name, fn } of [
|
for (const { name, fn } of [{ name: '~', fn: (a: number) => ~a }]) {
|
||||||
{ name: '~', fn: (a: number) => ~a },
|
|
||||||
{ name: '!', fn: (a: number) => (!a ? 1 : 0) },
|
|
||||||
]) {
|
|
||||||
env.set(name, {
|
env.set(name, {
|
||||||
type: 'function',
|
type: 'function',
|
||||||
value: {
|
value: {
|
||||||
|
Loading…
Reference in New Issue
Block a user