Mwnci items() Function

Syntax

items(hash)

Description

The items() function returns an array containing the key-value pairs of the hash.

Example

a={
    "name": "Norbert",
    "age": 21,
    "dog": "Pug"
}
b=items(a)
println(b)


[["age", 21], ["dog", "Pug"], ["name", "Norbert"]]