MostAndTail function

Fully qualified name: Std.Arrays.MostAndTail

function MostAndTail<'A>(array : 'A[]) : ('A[], 'A)

Summary

Returns a tuple of all but one and the last element of the array.

Type Parameters

'A

The type of the array elements.

Input

array

An array with at least one element.

Output

A tuple of all but one and the last element of the array.