liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 9730cdd63b230865d599c403e981fb337d759818
parent 095853214bb07d061348a29cd42e823e635e53bd
Author: Daniel Barlow <dan@telent.net>
Date:   Mon,  4 Mar 2024 22:25:15 +0000

add assoc to anoia

Diffstat:
Mpkgs/anoia/init.fnl | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/pkgs/anoia/init.fnl b/pkgs/anoia/init.fnl @@ -1,3 +1,7 @@ +(fn assoc [tbl k v] + (tset tbl k v) + tbl) + (fn merge [table1 table2] (collect [k v (pairs table2) &into table1] k v)) @@ -62,4 +66,4 @@ (s:sub 1 (- (# s) pad)))) -{ : merge : split : file-exists? : system : hash : base64url : dup } +{ : assoc : merge : split : file-exists? : system : hash : base64url : dup }