Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to resolve symbol: unwrap #27

Open
bennoloeffler opened this issue Sep 4, 2024 · 1 comment
Open

Unable to resolve symbol: unwrap #27

bennoloeffler opened this issue Sep 4, 2024 · 1 comment

Comments

@bennoloeffler
Copy link

bennoloeffler commented Sep 4, 2024

(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
Copy link
Author

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant