From a11d9a991b96178f5a572473841434ebe1715d72 Mon Sep 17 00:00:00 2001 From: Andrey Listopadov Date: Mon, 15 May 2023 22:42:06 +0300 Subject: add reduced --- .depend.mk | 4 ---- init.fnl | 2 +- lazy-seq | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) delete mode 100644 .depend.mk diff --git a/.depend.mk b/.depend.mk deleted file mode 100644 index cce5b25..0000000 --- a/.depend.mk +++ /dev/null @@ -1,4 +0,0 @@ -init.lua: init.fnl macros.fnl -tests/core.lua: tests/core.fnl macros.fnl init.fnl -tests/macros.lua: tests/macros.fnl macros.fnl -tests/fn.lua: tests/fn.fnl macros.fnl diff --git a/init.fnl b/init.fnl index 6b33e17..0753401 100644 --- a/init.fnl +++ b/init.fnl @@ -1485,7 +1485,7 @@ called. Early termination is supported via `reduced`. ```" [value] (doto (lazy.reduced value) - (-> getmetatable (tset :cljlib/deref #$.value)))) + (-> getmetatable (tset :cljlib/deref #($:unbox))))) (defn reduced? "Returns true if `x` is the result of a call to reduced" diff --git a/lazy-seq b/lazy-seq index 2949307..8022596 160000 --- a/lazy-seq +++ b/lazy-seq @@ -1 +1 @@ -Subproject commit 2949307a2dbf1dda6060a801431e8c0be062b2a0 +Subproject commit 8022596128e81f21b5d9be40f41b782415e1a39e -- cgit v1.2.3