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

Range can be turned into a lazy-seq #156

Merged
merged 1 commit into from
Jan 8, 2015

Conversation

thomasmulvaney
Copy link
Member

We can now go directly from a Range to a lazy sequence. I also switched the field declarations from keywords to symbols.

@@ -1565,6 +1565,20 @@ For more information, see http://clojure.org/special_forms#binding-forms"}
val
nil))))

;; TODO: place withing Range type when protocols support multi-arity functions
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A nitpick: s/withing/within/.

Also, you could place it within Range and use range->seq as an inner function. Especially because -seq has arity 1.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point

halgari added a commit that referenced this pull request Jan 8, 2015
Range can be turned into a lazy-seq
@halgari halgari merged commit 38218e8 into pixie-lang:master Jan 8, 2015
@thomasmulvaney thomasmulvaney deleted the lazy-range branch January 8, 2015 13:07
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.

3 participants