τau /

cmp

module
cmp = import("cmp")

cmp - comparison and ordering of values.

The == operator compares scalars by value and everything else by identity, like Go does with slices and maps. Equal is the structural comparison.

Equal = fn(a, b)source

Equal reports whether a and b hold the same value, walking lists, maps, objects and bytes.

Compare = fn(a, b)source

Compare returns -1 if a is less than b, 0 if they are equal, 1 otherwise. Only values that the < operator accepts can be compared.

Min = fn(a, b)source

Max = fn(a, b)source