Emojicode Documentation 1.0 beta 2

Value Type โฉ

Range, an immutable sequence of numbers. Read more in the language reference.

Initializers

๐Ÿ†•

๐Ÿ–  ๐Ÿ†•  start ๐Ÿ”ข  stop ๐Ÿ”ข 

Creates a range from start to stop.

๐Ÿ†•

๐Ÿ–  ๐Ÿ†•  start ๐Ÿ”ข  stop ๐Ÿ”ข  step ๐Ÿ”ข 

Creates a range from start to stop with the provided step.

Methods

๐Ÿฝโ—๏ธ

โ—๏ธ ๐Ÿฝ  n ๐Ÿ”ข โžก๏ธ ๐Ÿ”ข

Returns the n*th element of the range. *n is only valid if start + step * n is >= start and < stop. If n is invalid, the program will panic.

๐Ÿ“โ“

โ“ ๐Ÿ“ โžก๏ธ ๐Ÿ”ข

Returns the number of integers in this range.

๐Ÿกโ—๏ธ

โ—๏ธ ๐Ÿก โžก๏ธ ๐ŸŒณ๐Ÿš๐Ÿ”ข๐Ÿ†

Returns an iterator to iterate over integers in this range.