take-slice ( n string count -- n'/f string slice )


Vocabulary
modern.slices

Inputs
nan object
stringan object
countan object


Outputs
n'/fan object
stringan object
slicean object


Definition


:: take-slice ( n string count -- n'/f string slice )
n [ n string count take-slice-error ] unless n count +
:> to to string n to string <slice> ;