Choose

Choose(Integer, Array)

Returns a value from the array based on the value of Integer. For example, if integer is 0, it returns the first element in the array, and if index is 1 it returns the second element in the array.

Parameters

Return value

A value from the element in the given array. The type of the returned value is the same as the type of the element.

Examples