isnothing

This commit is contained in:
Tom Breloff 2016-11-15 17:05:26 -05:00
parent c4a880c870
commit ee2e807cc2

View File

@ -234,6 +234,9 @@ end
nop() = nothing nop() = nothing
notimpl() = error("This has not been implemented yet") notimpl() = error("This has not been implemented yet")
isnothing(x::Void) = true
isnothing(x) = false
cycle(wrapper::InputWrapper, idx::Int) = wrapper.obj cycle(wrapper::InputWrapper, idx::Int) = wrapper.obj
cycle(wrapper::InputWrapper, idx::AVec{Int}) = wrapper.obj cycle(wrapper::InputWrapper, idx::AVec{Int}) = wrapper.obj