hara_native/core/inspection.rs
1/// Returns cloned values for every persistent set-like runtime representation.
2///
3/// Embedding hosts should use this instead of matching a concrete [`Value`]
4/// variant. HAL set literals currently evaluate to ordered sets, while explicit
5/// constructors may produce hash, ordered, or sorted sets. The returned order
6/// follows the representation's iterator and is not part of set semantics.
7pub fn set_values(value: &Value) -> Option<Vec<Value>> {
8 set_items(value).map(|values| values.into_iter().cloned().collect())
9}