packages feed

spade-0.1.0.9: docs/functions/dictionary.md

### Dictionary Functions

#### haskey

Checks if a dictionary contains a given key.

Example:

```
let mydict = { name: "John", age: 33 }
inspect(haskey(mydict, "address"))
waitforkey()
```

#### addkey

Adds a new key to the dictionary.

#### getkey

Get the value associated with the key from the dictionary. If the value is not
in the dictionary, then this will return an error value. Wrap the call in a
  #link: try# to provide a default value.

#### Getting number of items in dictionary

Use #link: size#