diff options
| author | 2024-07-26 22:39:32 +0200 | |
|---|---|---|
| committer | 2024-07-26 22:39:32 +0200 | |
| commit | c3c2a2f26ba27574e7b4fabd8be150c057346131 (patch) | |
| tree | 76345040016b07deeb2cc4be49d64f80a6d5c90c /dot_config/nvim/fnl/toast/macros.fnl | |
| parent | nvim/mdquote: fix negative start line bug (diff) | |
nvim: rename tbl to mixed-table, import it as "·"
I swear I'm not succumbing to the APL, I just couldn't find a better
symbol.
Diffstat (limited to 'dot_config/nvim/fnl/toast/macros.fnl')
| -rw-r--r-- | dot_config/nvim/fnl/toast/macros.fnl | 9 |
1 files changed, 5 insertions, 4 deletions
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} |
