What is array slicing?

Array Slicing

In computer programming, array slicing is an operation that extracts certain elements from an array and packages them as another array, possibly with different number of indices (or dimensions) and different index ranges. Two common examples are extracting a substring from a string of characters (e.g. "ell" from "hello"), and extracting a row (or a column) of a rectangular matrix to be used as a vector.

Read more about Array Slicing.

Some articles on array slicing:

Array Slicing - Timeline of Slicing in Various Programming Languages - 2010: Cilk Plus
... Cilk Plus supports syntax for array slicing as an extension to C and C++ ... array_base ]* Cilk Plus slicing looks as follows A // All of vector A B // Elements 2 to 7 of vector B C // Column 5 of matrix C D // Elements 0, 2, 4 of vector D Differs from Fortran array slicing syntax by using ... Differs from Fortran array assignment semantics in that assignments are required to be either non-overlapping or perfectly overlapping, otherwise the result is ...

Famous quotes containing the word array:

    Any one who knows what the worth of family affection is among the lower classes, and who has seen the array of little portraits stuck over a labourer’s fireplace ... will perhaps feel with me that in counteracting the tendencies, social and industrial, which every day are sapping the healthier family affections, the sixpenny photograph is doing more for the poor than all the philanthropists in the world.
    Macmillan’s Magazine (London, September 1871)