py::builtins::range::start

constexpr const value_type& start() const;

Returns the start value of the range.

Return value

The start value of the range.

Complexity

Constant.

Example

#include <pypp/builtins/range.hpp>
#include <pypp/builtins/print.hpp>

int main()
{
    py::range<int> nums(10, 20, 2);
    py::print(nums.start()));
}

Output:

10