tiny.preserves.valueEqual
Defined in tiny.preserves.
Returns whether a and b are equal, the same answer as a.eql(b).
Source
Source: lib/preserves/src/any.zig:70
zig
/// Returns whether `a` and `b` are equal, the same answer as `a.eql(b)`. Code that needs value/// equality as a plain function passes this. Sets and dictionaries are equal when they hold the/// same elements or entries, whatever their storage order. Two embedded values are equal only when/// they share one table of equality, hash and order functions and that table's equality holds, or/// when both lack a table and point to the same payload. The call allocates nothing. Its cost on/// two sets grows with the square of their size.pub fn valueEqual(a: AnyValue, b: AnyValue) bool { return a.eql(b);}Source: lib/preserves/src/root.zig:182
zig
pub const valueEqual = any.valueEqual;Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |