pub fn transform<F>(f: F, spec: impl Into<Spec>) -> Nodewhere F: Fn(Value, &mut State<'_>) -> Value + Send + Sync + 'static,
A valid value is replaced with a function of it.