Head function

Fully qualified name: Std.Arrays.Head

function Head<'A>(array : 'A[]) : 'A

Summary

Returns the first element of the array.

Type Parameters

'A

The type of the array elements.

Input

array

Array of which the first element is taken. Array must have at least 1 element.

Output

The first element of the array.