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

fill does not preserve type #333

Open
ToxicFrog opened this issue Feb 17, 2018 · 0 comments
Open

fill does not preserve type #333

ToxicFrog opened this issue Feb 17, 2018 · 0 comments

Comments

@ToxicFrog
Copy link

clojure.core.matrix=> (emap (constantly 0) [[1 2] [3 4]])
[[0 0] [0 0]]
clojure.core.matrix=> (fill [[1 2] [3 4]] 0)
#object[clojure.core.matrix.impl.wrappers.NDWrapper 0x7a8e7c99 "[[0 0] [0 0]]"]

I can get back to a vector by calling matrix on the result, but at that point I'm not sure if it isn't better to just use emap everywhere I would otherwise use fill.

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