Julia Programming Language
Remove the redundant element type without coping the source data
New to Julia
uniment
November 2, 2022, 6:49am
2
Vector{Int}(Union{Missing, Int}[1, 2, 3])
Edit: Oops, missed that you wanted in-place.
1 Like
show post in topic
Related topics
Topic
Replies
Views
Activity
Get rid of Missing in eltype
General Usage
6
687
February 22, 2019
Efficient way to transform Array{Union{Missing,Float64}} to Array{Float64}?
General Usage
11
4243
September 6, 2019
Change type from Any to actual types
General Usage
14
1393
December 13, 2020
Union Types and conversion thereof
General Usage
5
2825
June 12, 2018
Eltypes of `view`s
Performance
eltype
10
640
August 2, 2021