Data Structures
01
Arrays
Arrays are zero-indexed collections. Jackal supports standard iteration and range-based 'in' loops to traverse elements.
spec_manifest.jk
let data = ["jack", "john", "davin", "ale"]
for (let i = 0; i < 4; i++) {
print(data[i])
}
for (i in data) {
print(data[i])
}
02
Maps
Maps store data in key-value pairs. Values are accessed by providing the corresponding string key within brackets.
spec_manifest.jk
let data = {
"id": 1,
"name": "ale"
}
println(data["name"])
← Return to Index
Technical Documentation