remove negation operator on integers

This commit is contained in:
Lizzy Hunt 2024-02-28 15:29:52 -07:00
parent 3d3942a80f
commit 9d1bd0d489
No known key found for this signature in database
GPG Key ID: E835BD4B08CCAF96

View File

@ -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: {