extents

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the extents of <array>
extents(<array>)
Summary

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

Introduced1.1
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
array
Example
the extents of myArray
put item 1 of line 2 of the extents of theFigures into columnsMinimum
Values
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.

RelatedKeyword: line
Command: combine, split
Function: keys, round, matrixMultiply, sum, max, min
Control Structure: function
Glossary: array, integer
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.

Tagsproperties