R/is_zero.R

Defines functions is_zero

Documented in is_zero

#' is_zero
#'
#' @param zdd a zdd list object
#'
#' @return TRUE if the zdd matches the output of zdd0()
#' @export
#'
#' @examples
#' is_zero(as_zdd(FALSE))  # TRUE
#' is_zero(zdd(0L))    # FALSE
is_zero <- function(zdd) {
  return(zdd == zdd0())
}
jordagaman/zddr documentation built on June 29, 2021, 4:23 a.m.