stepSequence: Lazy sequence object of evenly spaced integers

Description Usage Arguments Value Examples

View source: R/lazySequence.R

Description

Lazy sequence object of evenly spaced integers

Usage

1

Arguments

start

The start of the sequence.

step

The step size of the sequence, defaults to 1L.

Value

Lazy sequence object of evenly spaced integers starting at start increasing by step..

Examples

1
2
3
4
seq <- stepSequence(1, 4)
for (i in 1:4) {
  print(nextItem(seq))
}

bobjansen/recollections documentation built on Feb. 13, 2022, 1:30 p.m.