Skip to content

Commit

Permalink
Add generic isnull method
Browse files Browse the repository at this point in the history
  • Loading branch information
davidagold authored Sep 13, 2016
1 parent d0e7684 commit feddd37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions base/nullable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ end
get(x::Nullable) = x.isnull ? throw(NullException()) : x.value

isnull(x::Nullable) = x.isnull
isnull(x) = false

function isequal(x::Nullable, y::Nullable)
if x.isnull && y.isnull
Expand Down

0 comments on commit feddd37

Please sign in to comment.