Skip to main content

first_atomic_key

Function first_atomic_key 

Source
pub fn first_atomic_key<I: DocIndexLike>(v: &Value, idx: &I) -> Value
Expand description

Reduce a value to the single atomic value usable as a map key (XPTY0004 if not a singleton atomic; lenient — first item, nodes contribute their string value).