pub fn array_replace_n(array: Expr, from: Expr, to: Expr, max: Expr) -> Expr
replaces the first max occurrences of the specified element with another specified element.
max