forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathextents.lcdoc
More file actions
37 lines (22 loc) · 1.13 KB
/
extents.lcdoc
File metadata and controls
37 lines (22 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Name: extents
Type: function
Syntax: the extents of <array>
Syntax: extents(<array>)
Summary: Returns a list of the smallest and largest <keys> for each dimension of an <array>.
Introduced: 1.1
OS: mac,windows,linux,ios,android
Platforms: desktop,server,web,mobile
Example:
the extents of myArray
Example:
put item 1 of line 2 of the extents of theFigures into columnsMinimum
Parameters:
array (array):
Returns:
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.
Description:
Use the <extents> <function> to find the minimum and maximum row and column numbers of an <array> whose <keys> are <integer|integers>.
If any of the keys of the <array> is non-numeric, the <extents> <function> returns empty.
References: line (keyword), combine (command), split (command), keys (function), round (function), matrixMultiply (function), sum (function), max (function), min (function), array (glossary), integer (glossary), function (control_st)
Tags: properties