iequatable
September 14, 2025 ยท View on GitHub
Shows how to use xtd::iequatable interface.
Sources
Build and run
Open "Command Prompt" or "Terminal". Navigate to the folder that contains the project and type the following:
xtdc run
Output
foo {42}.equals(foo {42}) = true
foo {42}.equals(foo {84}) = false
!foo {42}.equals(foo {42}) = false
!foo {42}.equals(foo {84}) = true
foo {42} == foo {42} = true
foo {42} == foo {84} = false
foo {42} != foo {42} = false
foo {42} != foo {84} = true