ch13ex01

package
v0.0.0-...-4489971 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package ch13ex01 provides a deep equivalence relation that considers numbers of any type equal if they differ by less than one part in a billion.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(x, y interface{}) bool

Equal reports whether x and y are deeply equal, considering numbers of any type to be equal if they differ by less than one billionth.

Map keys are always compared with ==, not deeply. (This matters for keys containing pointers or interfaces.)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL