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

Commit

Permalink
isna() for scalar case
Browse files Browse the repository at this point in the history
  • Loading branch information
alyst committed Aug 26, 2015
1 parent ac288f7 commit fd6f0db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dataarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,8 @@ isna(da::DataArray) = copy(da.na) # -> BitArray
#' a = @data([1, 2, 3])
#' isna(a, 1)
#' isna(a, 1:2)
isna(da::DataArray, I::Real) = getindex(da.na, I)

@nsplat N function isna(da::DataArray, I::NTuple{N,Any}...)
getindex(da.na, I...)
end
Expand Down

0 comments on commit fd6f0db

Please sign in to comment.