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

map problem #14

Closed
BASS10 opened this issue Aug 8, 2021 · 2 comments
Closed

map problem #14

BASS10 opened this issue Aug 8, 2021 · 2 comments

Comments

@BASS10
Copy link

BASS10 commented Aug 8, 2021

I get an error when I try to use map on a circular array. It seems like this should work but perhaps I am missing something.

e.g. map(x -> x+1, CircularArray([1,2,3,4])) throws an error...

ERROR: MethodError: similar(::CircularVector{Int64, Vector{Int64}}, ::Type{Int64}, ::Tuple{Base.OneTo{Int64}}) is ambiguous. Candidates: ..............

reduce seems to work which slightly surprised me given the above
reduce(+, CircularArray([1,2,3,4]))
10

@Vexatos
Copy link
Owner

Vexatos commented Aug 9, 2021

Looks like there is another ambiguity with Base to resolve.

@Vexatos Vexatos closed this as completed in b0f8cd4 Aug 9, 2021
@BASS10
Copy link
Author

BASS10 commented Aug 9, 2021

Wow, that was quick!

Thanks for this handy package and the support.

All the best.

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

2 participants