Skip to main content

slice_get

Function slice_get 

Source
pub fn slice_get(
    container: &Value,
    start: &Value,
    end: &Value,
    step: &Value,
) -> DogeResult
Expand description

container[start:end:step]. A List yields a new List and a Str a new Str (character-based); every other value is a catchable type error. Bounds clamp rather than erroring, matching Python.