Merge commit '0edb9adc7b37e82bafb04cddfe7ee34b3a29ccc4'

This commit is contained in:
Benjamin Vedder 2022-07-13 14:40:52 +02:00
commit c1dcb03524
1 changed files with 14 additions and 0 deletions

View File

@ -984,6 +984,20 @@ Example that looks up the value of key `2` in an alist.
---
### cossa
The `cossa` function looks up a key in an alist given a value.
The form of an `assoc` expression is `(assoc alist-expr key-expr)`
Example that looks up the first key with value `donkey` in an alist.
```
# (cossa (list '(1 . horse) '(2 . donkey) '(3 . shark)) 'donkey)
> 2
```
---
### setassoc
The `setassoc` function destructively updates a key-value mapping in an