Mwnci keys() Function

Syntax

keys(hash)

Description

The keys() function will retrieve the keys from a hash and return the list in an array. The keys may only be of type boolean, int, and string.

Example

a={"name":"mwnci",
           true:1,
           7:"seven"}

println(keys(a))

foreach k in keys(a) {
    println(a[k])
}


[name, true, 7]
mwnci
1
seven