Skip to main content

simplify

Function simplify 

Source
pub fn simplify(value: &Value) -> Value
Expand description

Reduce a parsed value to the S-expression form the shared fixtures compare: every operator description becomes its source text, and a term that was never filled is dropped.

This is the Rust spelling of the canonical S helper the TypeScript suite uses and of the Go port’s Simplify.