cloojure / tupelo

Tupelo: Clojure With A Spoonful of Honey
Eclipse Public License 1.0
510 stars 15 forks source link

Unable to resolve symbol: unwrap #27

Open bennoloeffler opened 1 month ago

bennoloeffler commented 1 month ago

(ns tupelo-bug.core (:use [tupelo.core]))

(defn the-bug [] (glue ['abc 'def] [4] [3 4]) ; works - so symbols from tupelo.core are available (->vector 1 (unwrap [2 3 4 5 6 7 8]) 9)) ; does not work: I searched for unwrap in source. Not found. Bug?

;; while loading the code: Exception ;; => ;; Loading src/tupelo_bug/core.clj... ;; Syntax error compiling at (src/tupelo_bug/core.clj:6:15). ;; Unable to resolve symbol: unwrap in this context

;; IT WORKS IN OLDER VERSIONS, e.g.: [tupelo "20.07.14"] ;; But does not work in [tupelo "24.06.21"]

bennoloeffler commented 1 month ago

found solution: Splice operator. (->vector 1 (<> [2 3 4 5 6 7 8]) 9)

You may fix the README.md: Replace 'unwrap' by '<>'