79167788

Date: 2024-11-07 19:14:06
Score: 1.5
Natty:
Report link

See docs:

Slicing an array means to specify a subarray of it. This is done by supplying two index expressions. The elements from the start index up until the end index are selected. Any item at the end index is not included.

An array slice does not copy the data, it is only another reference to it. Slicing produces a dynamic array.

BTW: string is kind of array.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jacek Marcin Jaworski