right¶
Extract the last n
elements from an object.
Parameters:
No. | Type | Comments |
---|---|---|
1 | string or list< T > | Object to extract values from |
2 | int | Number of elements extract from the end |
Returns:
The extracted result. Note the result is
optional, and none
is returned if its not possible extract the required number of elements.
Usages:
right( v:list<T>, count : int ) : list<T>?
right( v:string, count : int ) : string?