R/lnull.r

#' Check weather a lazy stream is lempty
#'
#' @name lnull
#' @param x a lazy stream object
#' @details 'lempty' is just a symbol representing empty list of a lazy stream object.
#'  lnull() tests whether a R object equals lempty.
#' @examples
#' lnull(llist(1, 2, 3)) # => FALSE
#' lnull(lempty) # => TRUE
NULL

#' @rdname lnull
#' @export
lnull <- function(x) identical(x, lempty)

#' @rdname lnull
#' @export
lempty <- quote(empty)
TobCap/lazystreamr documentation built on May 9, 2019, 4:50 p.m.