System.Keys - Manhunter07/MFL GitHub Wiki
Declaration
function Keys(Value: System.Struct): array = \built-in\
Description
The Keys
function in the System
package returns all member keys within the structure passed as argument for the Value
parameter in an array.
- If the argument holds a string or an array, the function returns all possible indices (this being a list of numbers from
0
toLength(Value) - 1
) - If the argument holds a record, the function returns all its key strings
- If the argument holds an empty structure (
""
,[]
or{}
), the function returns an empty array ([]
)