#### 8.2.16 head ¶

Function: `out =` head `(A)` ¶
Function: `out =` head `(A, k)` ¶

  Get first K rows of an array.

  Returns the array A, subsetted to its first k rows. This means subsetting it to the first `(min (k, size (A, 1)))` elements along dimension 1, and leaving all other dimensions unrestricted.

  A is the array to subset.

  k is the number of rows to get. k defaults to 8 if it is omitted or empty.

  If there are less than k rows in A, returns all rows.

  Returns an array of the same type as A, unless ()-indexing A produces an array of a different type, in which case it returns that type.

  See also: tail