From 69ca30facf0fd3584e88d9b45f5a90172f49c87b Mon Sep 17 00:00:00 2001 From: Andreas Noack Date: Thu, 23 Feb 2017 23:03:08 -0500 Subject: [PATCH] Return Array{Nullable{T}} instead of NullableArray{T} in unique --- src/nullablearray.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nullablearray.jl b/src/nullablearray.jl index 42f3eda2..75e610df 100644 --- a/src/nullablearray.jl +++ b/src/nullablearray.jl @@ -136,4 +136,4 @@ levels!(A::NullableCategoricalArray, newlevels::Vector; nullok=false) = _levels! droplevels!(A::NullableCategoricalArray) = levels!(A, _unique(Array, A.refs, A.pool)) -unique{T}(A::NullableCategoricalArray{T}) = _unique(NullableArray{T}, A.refs, A.pool) +unique{T}(A::NullableCategoricalArray{T}) = _unique(Array{Nullable{T}}, A.refs, A.pool)