canonical_index_set_json
Stable function · Document I/O
Tier: stable · Kind: function · Topic: Document I/O
| Julia | TypeScript | Python | Rust | Go |
|---|---|---|---|---|
| not exported | not exported | canonical_index_set_json | canonical_index_set_json | not exported |
Julia
Julia does not export this function.
TypeScript
TypeScript does not export this function.
Python
canonical_index_set_json(rows: Iterable[Any]) -> str
Canonical byte form of an index set (CONFORMANCE_SPEC.md §5.5.3): the
distinct
rows, each tuple serialised as a JSON array, in §5.5.1
sorted order, as compact UTF-8 JSON.
Two conforming bindings MUST produce byte-for-byte identical output for the same input multiset. This is the artifact the adversarial conformance harness (§5.5.4) compares byte-for-byte across duplicate / reversed / permuted inputs.
Rust
pub fn canonical_index_set_json(rows: &[Key]) -> String
Canonical byte form of an index set (CONFORMANCE_SPEC.md §5.5.3): the
distinct
rows, each tuple serialised as a JSON array, in §5.5.1 sorted
order, as compact JSON (, / : separators, no spaces, UTF-8, no
\uXXXX escaping). Two conforming bindings MUST produce byte-for-byte
identical output for the same input multiset.
This is the artifact the adversarial conformance harness (§5.5.4) compares byte-for-byte across duplicate / reversed / permuted inputs.
Go
Go does not export this function.