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