fn dist_vectorize( args: &[RValue], fname: &str, f: impl Fn(f64) -> f64, ) -> Result<RValue, RError>
Helper to vectorize a distribution function over the first argument.