cripslock

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

commit 6429e073a279535af169a0aa90b3f7b99019e7e0
parent 39bea00a19e419b01b9d6809cc931ec88caf2779
Author: Daniel Barlow <dan@telent.net>
Date:   Mon, 31 Aug 2026 21:18:26 +0100

add lib.clone for shallow copying tables

Diffstat:
Mlib.fnl | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/lib.fnl b/lib.fnl @@ -8,6 +8,10 @@ (table.insert 1 head)) [head])) +(fn clone [tbl] + (collect [k v (pairs tbl)] (values k v))) + + (fn string-stream [] (let [strings []] { @@ -101,5 +105,6 @@ { : prepend : string-stream : trace "%%" string.format + : clone : parse-timestamp }