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

macro lazy-cat is not defined #605

Closed
randomizedthinking opened this issue Oct 4, 2020 · 1 comment
Closed

macro lazy-cat is not defined #605

randomizedthinking opened this issue Oct 4, 2020 · 1 comment

Comments

@randomizedthinking
Copy link

Is your feature request related to a problem? Please describe.
I happened to find out the macro lazy-cat is not defined in babashka. On the other hand, the macro lazy-seq is.

Describe the solution you'd like
Understand the macro is not widely used. Still, it would be nice to have it since it is part of the clojure.core.

Additional context
The bb version is: v0.2.1

@borkdude
Copy link
Collaborator

borkdude commented Oct 4, 2020

@randomizedthinking Will add to sci. Workaround for now:

(intern 'clojure.core
        (with-meta 'lazy-cat
          {:macro true})
        (fn [_ _ & colls] `(concat ~@(map #(list `lazy-seq %) colls))))

(lazy-cat [1 2 3] [4 5 6]) ;;=> (1 2 3 4 5 6)

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

2 participants