Skip to content

The Mwnci Scripting Language

Just another Monkey Lang

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"]]

Index

  • What is MSL?
  • MSL Operators
  • MSL Compound Statements
    • foreach
    • function
    • if
    • switch
    • while
  • Mwnci Comments
  • Mwnci Variables
  • Mwnci Arrays
  • Mwnci Hashes
  • Built-in Functions
  • Mwnci Includes
    • Included Main Functions
    • Included String Functions
    • Included Math Functions
    • Included Sysstat Functions
    • Included Stats Functions
    • Included File Functions
    • Included JSON Functions
    • Included Certificate Functions
    • Included Process Functions
    • Included Password Functions
    • Included Group Functions
    • Included Shadow Password Functions
    • Included Network Functions
  • The Mwnci REPL (console)
  • Examples

Archives

No archives to show.
The Mwnci Scripting Language Proudly powered by WordPress