Tile - Array - Slice – Ylands
Jump to navigation
Jump to search
m (YlandsClassyBot moved page Ylands Tile - Array slice to Ylands:Tile - Array - Slice: New Structure) |
No edit summary |
||
Line 1: | Line 1: | ||
<!--- | |||
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE. | |||
--> | |||
== Slice(Array, Begin, End) == | |||
=Notes= | [[File:YlandsTile-509.png]] | ||
* | |||
<pre>slice(begin: number, end: number): T[];</pre> | |||
=== Parameters === | |||
==== begin ==== | |||
==== end ==== | |||
=== Returns === | |||
'''any[]''' | |||
=== Description === | |||
This instruction will '''slice''' selected '''elements''' from an array and return them as '''new array''' object. | |||
=== Notes === | |||
* This instruction selects the elements starting at the given start argument, and ends at, but does not include, the given end argument. | |||
* This instruction does not change the length of original array | |||
Line 13: | Line 32: | ||
[[Category: Instructions]] | [[Category: Instructions]] | ||
Revision as of 08:53, 8 July 2021
Slice(Array, Begin, End)
slice(begin: number, end: number): T[];
Parameters
begin
end
Returns
any[]
Description
This instruction will slice selected elements from an array and return them as new array object.
Notes
- This instruction selects the elements starting at the given start argument, and ends at, but does not include, the given end argument.
- This instruction does not change the length of original array