/

 

The manual

Self-training

Experimentation

Contact

 

Language

Index

An index is a set of pairs (key, value).
You can read or write the value associated with each key:

var (Index Int Str) idx
idx 12 := "abc"
var Str s := idx 3

When reading an entry that does not exist, it is the default value for the type of value that is returned.

You can also browse the set of values \u200b\u200bor pairs, in ascending order of the key.

var Str t := ""
each v idx
  t := t+" "+v

var Str t := ""
each v idx getkey k
  t := t+" "+string:k+":"+v