JuliaArrays / JuliaArrays/MappedArrays.jl
ambigous method error on missings
Open
@johnnychen94 is already working on this.
Since Feb 18, 2021.
- Dominant language
- Julia
- Stars
- 88
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Description
The following code converts from an Vector{Tuple} to a Vector of first entry of the Tuple. I expected that I can access it like a Vector. However, currently it errors with 'method is ambiguous'. How can I make it work?
tvec = allowmissing([(rand(),rand()) for i=1:6]);
tvec[1] = missing
c = mappedarray(x-> ismissing(x) ? missing : first(x),tvec);
c[1:2]
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.