Skip to main content

extents

Type​

function

Summary​

Returns a list of the smallest and largest keys for each dimension of an array.

Syntax​

the extents of <array>
extents(<array>)

Description​

Use the extents function to find the minimum and maximum row and column numbers of an array whose keys are integers.

If any of the keys of the array is non-numeric, the extents function returns empty.

Parameters​

NameTypeDescription

array

array

Examples​

the extents of myArray
put item 1 of line 2 of the extents of theFigures into columnsMinimum

Value​

NameTypeDescription

return

The extents function returns one line for each dimension of the array. Each line contains two numbers separated by commas. The first item is the lowest key number in that dimension, and the second item is the highest key number.

control structure: function

function: keys, round, matrixMultiply, sum, max, min

glossary: array, integer

keyword: line

command: combine, split

Compatibility and Support​

Introduced

LiveCode 1.1

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?