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

V8 Iterator helpers #351

Open
jcubic opened this issue Mar 28, 2024 · 0 comments
Open

V8 Iterator helpers #351

jcubic opened this issue Mar 28, 2024 · 0 comments

Comments

@jcubic
Copy link
Owner

jcubic commented Mar 28, 2024

V8 iterator helpers recently introduced feature doesn't play well with LIPS:

(iterator->array (--> (Iterator.from "foo") (map (lambda (x) (lips.LCharacter x)))))
;; ==> #("f" "o" "o")

(--> (Array.from "foo") (map (lambda (x) (lips.LCharacter x))))
;; ==> #(#\f #\o #\o)

Maybe we should not do exception for arrays (always unbox), this will be big breaking change and it will require to write vector-map in JavaScript.
There will also be a need to write vector-reduce and vector-fold.

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