(array (id expr)*) ↦ (array?) id : WAL value expr : WAL expression
>-> (array) {} >-> (array ['x 10] ['y 20]) {("x" 10) ("y" 20)} >-> (array [5 5]) {("5" 5)}
(seta array key value) ↦ WAL value array : (array?) key : WAL value value: WAL expression
>-> (seta (array) 'x 10) {("x" 10)} >-> (seta (array ['x 10]) 'y 20) {("x" 10) ("y" 20)} >-> (define some-array (array)) {} >-> (define data '("test" "data")) ("test") >-> (seta some-array 0 data) {("0" ("test" "data"))}
(geta array key) ↦ WAL value array : (array?) key : WAL value
>-> (geta (array ['x 10]) 'x) 10 >-> (define i 5) 5 >-> (geta (array ['i 0] [5 "test"]) i) "test"
(geta/default array default key) ↦ WAL value array : (array?) default : WAL expression key : WAL value
>-> (geta/default (array ['x 10]) 5 'x) 10 >-> (geta/default (array ['x 10]) 5 'y) 5
(dela array key) ↦ WAL value array : (array?) key : WAL value
>-> (dela (array ['x 10] ['y 20]) 'x) {["y" 20]}
(mapa f array) ↦ (list?) f : (fn?) (fn [key value] ...) array : (array?)
>-> (mapa (fn [k v] (list k v)) (array ['x 10] ['y 20]) 'x) {["y" 20]}