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 [
|
||||
{ name: '~', fn: (a: number) => ~a },
|
||||
{ name: '!', fn: (a: number) => (!a ? 1 : 0) },
|
||||
]) {
|
||||
for (const { name, fn } of [{ name: '~', fn: (a: number) => ~a }]) {
|
||||
env.set(name, {
|
||||
type: 'function',
|
||||
value: {
|
||||
|
Loading…
Reference in New Issue
Block a user