Range.Iterator protocol

Source

Summary

count(first, range)

Count how many items are in the range

impl_for!(data)
impl_for(data)
next(first, range)

Returns the function that calculates the next item

Types

t :: term

Functions

count(first, range)

Count how many items are in the range.

Source
impl_for(data)

Specs:

  • impl_for(term) :: module | nil
Source
impl_for!(data)

Specs:

  • impl_for!(term) :: module | no_return
Source
next(first, range)

Returns the function that calculates the next item.

Source