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

Make mapcat be a transducer if no collections are provided #608

Merged
merged 3 commits into from
Feb 11, 2025

Conversation

jonasseglare
Copy link
Contributor

This resolves issue #607, so that mapcat will return a transducer in case no collections are provided:

(def predicate-keyword-id-map (into {}
                                    (mapcat (fn [[keyword ids]]
                                              (map (fn [id] [id keyword]) ids)))
                                    predicate-id-keyword-map))

Please answer the following questions and leave the below in as part of your PR.

@borkdude
Copy link
Member

Awesome! Can you also update the changelog?

@jonasseglare
Copy link
Contributor Author

Thanks, changelog has been updated.

@borkdude borkdude merged commit bb0a52e into squint-cljs:main Feb 11, 2025
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

Successfully merging this pull request may close these issues.

2 participants