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

Empty sequence reduces as if '(nil) #262

Open
frenchy64 opened this issue Feb 11, 2025 · 0 comments · May be fixed by #263
Open

Empty sequence reduces as if '(nil) #262

frenchy64 opened this issue Feb 11, 2025 · 0 comments · May be fixed by #263

Comments

@frenchy64
Copy link
Contributor

frenchy64 commented Feb 11, 2025

;; jank
clojure.core=> (reduce (fn [a b] :done) :init (lazy-seq))
:done
clojure.core=> (reduce (fn [a b] :done) :init (map identity []))
:done

user=> (reduce (fn [a b] :done) :init (lazy-seq))
:init
user=> (reduce (fn [a b] :done) :init (map identity []))
:init
@frenchy64 frenchy64 changed the title Empty seq reduces as (nil) Empty sequence reduces as (nil) Feb 11, 2025
@frenchy64 frenchy64 changed the title Empty sequence reduces as (nil) Empty sequence reduces as if (nil) Feb 11, 2025
@frenchy64 frenchy64 changed the title Empty sequence reduces as if (nil) Empty (lazy-seq) reduces as if '(nil)` Feb 11, 2025
@frenchy64 frenchy64 changed the title Empty (lazy-seq) reduces as if '(nil)` Empty sequence reduces as if '(nil) Feb 11, 2025
@frenchy64 frenchy64 linked a pull request Feb 12, 2025 that will close this issue
@jeaye jeaye removed the type:bug label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants