Ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e0ba6b95ab71a441357ed5484e33498)
Data Fields
rb_arithmetic_sequence_components_t Struct Reference

Decomposed Enumerator::ArithmeicSequence. More...

#include <enumerator.h>

Data Fields

VALUE begin
 "Left" or "lowest" endpoint of the sequence. More...
 
VALUE end
 "Right" or "highest" endpoint of the sequence. More...
 
VALUE step
 Step between a sequence. More...
 
int exclude_end
 Whether the endpoint is open or closed. More...
 

Detailed Description

Decomposed Enumerator::ArithmeicSequence.

This is a subclass of rb_cEnumerator, which represents a sequence of numbers with common difference. Internal data structure of the class is opaque to users, but you can obtain a decomposed one using rb_arithmetic_sequence_extract().

Definition at line 4945 of file rb_mjit_min_header-3.1.3.h.

Field Documentation

◆ begin

VALUE rb_arithmetic_sequence_components_t::begin

"Left" or "lowest" endpoint of the sequence.

Definition at line 4946 of file rb_mjit_min_header-3.1.3.h.

◆ end

VALUE rb_arithmetic_sequence_components_t::end

"Right" or "highest" endpoint of the sequence.

Definition at line 4947 of file rb_mjit_min_header-3.1.3.h.

◆ exclude_end

int rb_arithmetic_sequence_components_t::exclude_end

Whether the endpoint is open or closed.


Definition at line 4949 of file rb_mjit_min_header-3.1.3.h.

◆ step

VALUE rb_arithmetic_sequence_components_t::step

Step between a sequence.

Definition at line 4948 of file rb_mjit_min_header-3.1.3.h.


The documentation for this struct was generated from the following files: