pub fn slice(
val: Value,
start: Option<i64>,
end: Option<i64>,
mutate: bool,
) -> ValueExpand description
slice(val, start?, end?, mutate?) — sub-section of a list, string, or
bounded number. When val is a list and mutate is true, the list is
truncated/shifted in place (and the same list value is returned).