From f49835c11b16b0d8cf136f076c31cbc28f1f4931 Mon Sep 17 00:00:00 2001 From: Andrey Listopadov Date: Wed, 23 Jun 2021 18:46:22 +0300 Subject: refactor library to use new init-macros.fnl feature Old way of requiring the library: (local clj (require :fennel-cljlib) (import-macros cljm :fennel-cljlib.macros) New way: (local clj (require :fennel-cljlib) (import-macros cljm :fennel-cljlib) --- init.fnl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'init.fnl') diff --git a/init.fnl b/init.fnl index 2eafa45..845ebbb 100644 --- a/init.fnl +++ b/init.fnl @@ -54,7 +54,7 @@ non-ASCII strings."}) (import-macros {: fn* : into : empty : with-meta : when-let : if-let : when-some : if-some} - (if (and ... (not= ... :init)) (.. ... :.macros) :macros)) + (if (and ... (not= ... :init)) (.. ... :.init-macros) :init-macros)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Utility functions ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -740,7 +740,7 @@ Map `mul' over two tables: Basic `zipmap' implementation: ``` fennel -(import-macros {: into} :macros) +(import-macros {: into} :init-macros) (fn zipmap [keys vals] (into {} (mapv vector keys vals))) -- cgit v1.2.3