slice
constslice: <T>(obj:string|T[],start?:number,stop?:number,step?:number) =>string|T[] =core.slice
Defined in: packages/pythonlib/src/index.ts:137
Python-style slice operation Supports negative indices and step
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
obj | string | T[] |
start? | number |
stop? | number |
step? | number |
Returns
string | T[]