Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 275 Bytes

File metadata and controls

13 lines (11 loc) · 275 Bytes

esoteric-array-slicer

An esoteric package to retrieve the first part of an array.

Usage

Example

Get the first 20 elements of an array of 1000 elements.

$a = range(1,1000);
$n = 20
$slicer = new \GoatCodeNL\Slicer\Slicer();
$slice = $slicer->slice($a, $n);