From f696a71b13d6867bf7168e6314eeaa8663b30e92 Mon Sep 17 00:00:00 2001 From: Andrey Orst Date: Sun, 25 Oct 2020 20:45:42 +0300 Subject: feature: refactoring --- macros/core.fnl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'macros/core.fnl') diff --git a/macros/core.fnl b/macros/core.fnl index a53eced..bf4dfe8 100644 --- a/macros/core.fnl +++ b/macros/core.fnl @@ -1,5 +1,5 @@ (import-macros {: fn*} :macros.fn) -(local _unpack (or table.unpack unpack)) +(local unpack (or table.unpack _G.unpack)) (local insert table.insert) (fn check-bindings [bindings] @@ -25,7 +25,7 @@ `(let [tmp# ,test] (if tmp# (let [,form tmp#] - ,(_unpack body)))))) + ,(unpack body)))))) (fn* if-some ([bindings then] @@ -47,7 +47,7 @@ (if (= tmp# nil) nil (let [,form tmp#] - ,(_unpack body)))))) + ,(unpack body)))))) (fn table-type [tbl] -- cgit v1.2.3