Skip to content

Commit 083133b

Browse files
committed
Add missing andNot number op
Signed-off-by: James Hamlin <jfhamlin@gmail.com>
1 parent a70b262 commit 083133b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pkg/lang/numbers.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ func (nm *NumberMethods) And(x, y any) any {
102102
return bitOpsCast(x) & bitOpsCast(y)
103103
}
104104

105+
func (nm *NumberMethods) AndNot(x, y any) any {
106+
return bitOpsCast(x) &^ bitOpsCast(y)
107+
}
108+
105109
func IsZero(x any) bool {
106110
return Ops(x).IsZero(x)
107111
}

0 commit comments

Comments
 (0)