Skip to content

Equals Operator

IsaacShelton edited this page Mar 21, 2022 · 1 revision

== Operator

The == operator is used for testing for equality between two values.

1 == 2

Override

The == operator can be defined for additional types or type combinations with the following:

func __equals__(a $A, b $B) bool

where $A and $B are any valid types

See __equals__ for more information.

Clone this wiki locally