Skip to main content

Module equal

Module equal 

Source
Expand description

XBRL 2.1 §4.10 equality predicates: s-equal contexts (with typed segment / scenario content), u-equal units, v-equal values. Contexts and units reduce to comparable keys.

Functions§

context_key
A key equal for s-equal contexts (§4.10, non-dimensional: segment and scenario content compared as XML with typed values, in order).
element_key
Typed s-equality key of an element subtree (segment / scenario content). None when a NaN value makes the content unequal to everything, itself included.
fact_value_key
The typed value of a fact for v-equality (or its trimmed text when untyped).
unit_key
u-equal key of a unit.