From ee2e807cc24f18c5af3b931566fdca556b5957ed Mon Sep 17 00:00:00 2001 From: Tom Breloff Date: Tue, 15 Nov 2016 17:05:26 -0500 Subject: [PATCH] isnothing --- src/utils.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils.jl b/src/utils.jl index afb9a52f..c6246837 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -234,6 +234,9 @@ end nop() = nothing 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::AVec{Int}) = wrapper.obj