R/enumerate_interval.R

stream_enumerate_interval <- function(low, high) {
    if (low > high) return(NULL)
    cons_stream(low,
                stream_enumerate_interval(low + 1, high))
}
tarakc02/lazylist documentation built on May 31, 2019, 3:51 a.m.