slice_string

Returns the Python-style slice of the input string.

The resulting string is obtaining by collecting the characters positioned at the indices corresponding to a Python slice [start:stop:stride] of the input string.

Inputs

string

The input string.

start

The beginning position of the slice interval.

stop

The ending position of the slice interval.

stride

The stepping of the slice interval.

Output

slice

The result string slice.