From c3c2a2f26ba27574e7b4fabd8be150c057346131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chlo=C3=A9=20Vulquin?= Date: Fri, 26 Jul 2024 22:39:32 +0200 Subject: =?UTF-8?q?nvim:=20rename=20tbl=20to=20mixed-table,=20import=20it?= =?UTF-8?q?=20as=20"=C2=B7"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I swear I'm not succumbing to the APL, I just couldn't find a better symbol. --- dot_config/nvim/fnl/toast/macros.fnl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'dot_config/nvim/fnl/toast/macros.fnl') diff --git a/dot_config/nvim/fnl/toast/macros.fnl b/dot_config/nvim/fnl/toast/macros.fnl index b81d8e6..e9d5038 100644 --- a/dot_config/nvim/fnl/toast/macros.fnl +++ b/dot_config/nvim/fnl/toast/macros.fnl @@ -5,10 +5,11 @@ : assoc} (require :toast.core)) (local {: insert} (require :toast.table)) -(fn tbl [...] +(fn mixed-table [...] "Generate a mixed table. - The format is (tbl 1 2 3 & :a :b) to produce {1; 2; 3; a = 'b'}. - This macro simply expands to the correct data during compile-time." + The format is (mixed-table 1 2 3 & :a :b) to produce {1; 2; 3; a = 'b'}. + This macro simply expands to the correct data during compile-time. + It is recommended to import this as a single character macro locally." (let [args [...] pre (accumulate [out [] _ v (ipairs args) @@ -24,5 +25,5 @@ The equivalent call is (recc :something :call arg1 arg2)" `((. (require ,reqspec) ,key) ,...)) -{: tbl +{: mixed-table : recc} -- cgit v1.2.3