Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

Commit

Permalink
add index-less values()
Browse files Browse the repository at this point in the history
  • Loading branch information
alyst committed Jan 18, 2017
1 parent aafa554 commit 921b65b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/primitives.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Base.isnull(x::NullableArray) = x.isnull
@inline Base.isnull(X::NullableArray, I::Int...) = X.isnull[I...]
@inline Base.isnull{T}(X::AbstractNullableArray{T}, I::Int...) = isnull(X[I...]) # fallback method

Base.values(X::NullableArray) = X.values
@inline Base.values(X::NullableArray, I::Int...) = X.values[I...]

"""
Expand Down

0 comments on commit 921b65b

Please sign in to comment.