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

should be able to specify the type when initializing a container from an iterator #13

Open
tarakc02 opened this issue Aug 10, 2022 · 1 comment

Comments

@tarakc02
Copy link
Owner

A lot of the Iterators.\* types have an eltype of Any. Don't know if it's worth doing something more fancy to determine the container type at construction (makes a big difference in performance), but at the very least a user should be able to specify it, e.g.:

julia> PureFun.Linked.List{Int}(1:10)
@tarakc02
Copy link
Owner Author

currently this won't really work, and as a workaround we use some awkward type inference stuff. keeping the issue open to rethink module designs...

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