Programming Search⌘K

Conceptintro

Range

Also called range type, integer range, half-open range, interval, range(), start..end, Range<T>, IntStream.range, Enumerable.Range, iota_view, System.Range.

A range is a sequence of numbers or positions given by a start, an end and sometimes a step. Most languages include the start and exclude the end.

Applies to
core-languages

Idea

A range names a run of numbers by its ends instead of by its items. range(2, 13) in Python means the numbers 2, 3 and so on up to 12. A range usually has three parts: a start, an end and a step, which is 1 when the code does not give one. A program uses a range to count the passes of a loop, to name a part of an array, or to test whether a value is between two bounds.

Wikipedia lists three meanings of the word in programming: "The possible values that may be stored in a variable. The upper and lower bounds of an array. An alternative to iterator"1. This page is about the second and third meanings: a range as a value that stands for a sequence of numbers or positions.

The most important choice is whether each end is part of the range. Most languages use a half-open range: the start is in the range and the end is not. Dijkstra gave the reasons for this choice in 19822.

# range(start, stop) gives start, start + 1, ..., stop - 1.
r = range(2, 13)
print(list(r))
print(len(r), 13 - 2, 2 in r, 13 in r)

# Split at 7: the halves share the bound 7, and each number is in exactly one half.
lo, hi = range(2, 7), range(7, 13)
print(list(lo), list(hi), len(lo) + len(hi))

# A range with a step, a range that counts down, and an empty range.
print(list(range(0, 10, 3)), list(range(5, 0, -1)), list(range(5, 5)))
Output
[2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
11 11 True False
[2, 3, 4, 5, 6] [7, 8, 9, 10, 11, 12] 11
[0, 3, 6, 9] [5, 4, 3, 2, 1] []

The range from 2 to 13 has 11 items, and 11 is 13 minus 2. The two halves at 7 use the same number as the end of one and the start of the other, and together they have all 11 items. The range from 5 to 5 is empty, and no special case is necessary for it.

How it works

Four conventions. To name the numbers 2 to 12, Dijkstra lists "four conventions are open to us a) 2 ≤ i < 13 b) 1 < i ≤ 12 c) 2 ≤ i ≤ 12 d) 1 < i < 13"2. With a) and b), "the difference between the bounds as mentioned equals the length of the subsequence"2, and two ranges are adjacent when "the upper bound of the one equals the lower bound of the other"2. To choose between them, he looks at ranges that start at 0. An excluded lower bound would then have to be -1, which is not a natural number, and an included upper bound would have to be -1 for the empty range. "That is ugly, so for the upper bound we prefer < as in a) and d). We conclude that convention a) is to be preferred"2.

Convention a) is the half-open range [start, end). It has these properties:

  • the length is end - start;
  • the range is empty when start >= end, so a loop over it runs zero times;
  • the ranges [a, m) and [m, b) split [a, b) with no gap and no overlap;
  • the indices of an array of length n are the range [0, n).

A range is small. A range stores its bounds and not its items. Python says: "The advantage of the range type over a regular list or tuple is that a range object will always take the same (small) amount of memory, no matter the size of the range it represents (as it only stores the start, stop and step values, calculating individual items and subranges as needed)"3. So len, in and indexing on a range are arithmetic. In the Python example, range(0, 10**18, 2) has 500000000000000000 items, and 10**17 in big is fast.

A range as a type. In Python, Rust and C#, a range is a value that the program can store and pass. Rust defines Range as "A (half-open) range bounded inclusively below and exclusively above (start..end)", and "The range start..end contains all values with start <= x < end. It is empty if start >= end"4. Rust has a second type for an included end: "The RangeInclusive start..=end contains all values with x >= start and x <= end"5. In other languages a range is only a loop form or a function that gives a stream of numbers.

Ranges and slices. A range of positions selects a part of an array or a string. In C#, "The start of the range is inclusive, but the end of the range is exclusive"6, and ^n counts from the end. In Go and Python, a[1:3] uses the same half-open rule. See slice.

Ranges of iterators. C++ and D use the word for a pair of iterators. Wikipedia describes this meaning as "a pair of begin/end iterators packed together"1. A C++ std::vector is a range in this sense, and std::views::iota is a range that makes its numbers as the loop asks for them. See iterators.

In languages

LanguageVerdictNote
PythonNative
C++Standard library
JavaStandard library
CIdiom
C#Native
JavaScriptIdiom
TypeScriptIdiomTypeScript has no range type. The JavaScript idioms, Array.from with a length and a generator function, work with the types number[] and Generator<number>. No example file exists.
GoNative
RustNative
KotlinNativeA..b includes b and a..<b excludes it. step and downTo make progressions, and the types IntRange and IntProgression store the bounds. No example file exists because kotlinc is not installed.
SQLNativePostgreSQL has range types such as int4range, numrange, daterange and tsrange, with operators for containment and overlap. generate_series gives a range of numbers as rows. Other databases use BETWEEN, which includes both ends.
BashNativeBrace expansion {1..5} and {0..10..2} gives numbers with both ends included, and the arithmetic for loop counts with a test such as i < n. No example file exists.
PowerShellNativeThe range operator 1..5 makes an array of the numbers from 1 to 5, with both ends included. 5..1 counts down. No example file exists because pwsh is not installed.
HTMLDoes not applyHTML is markup. The input element with type range is a slider control, not a range value.
CSSDoes not applyCSS has no range values. Media queries can test a range of widths, but that is a condition, not data.
Regular expressionsIdiomA character class such as [a-z] is a range of characters, and a quantifier such as {2,5} is a range of counts. Both include their ends.
Language Verdict Mechanism
Python native range(stop), range(start, stop, step), an immutable sequence with len, in and slicing
JavaScript idiom no range type; Array.from({ length: n }, (_, i) => i), keys() or a generator; Iterator.range is a proposal
TypeScript idiom the JavaScript idioms with the type number[] or Generator<number>
Java stdlib the for loop; IntStream.range and IntStream.rangeClosed
Kotlin native a..b and a..<b with step and downTo; the types IntRange and IntProgression
C# native a..b and ^n (System.Range and System.Index) for indices; Enumerable.Range(start, count) for numbers
Go native for i := range n (Go 1.22); a[low:high] for slices; an iter.Seq function for other ranges
Rust native a..b, a..=b, a.. and ..b, with step_by, rev and contains
C idiom for (i = start; i < end; i++); a struct with two bounds
C++ stdlib std::views::iota (C++20) with stride (C++23) and reverse; any begin and end pair is a range
Bash native brace expansion {1..5} and {0..10..2}; the arithmetic for ((i = 0; i < n; i++))
PowerShell native the range operator 1..5, which includes both ends
SQL native in PostgreSQL, range types such as int4range and tsrange; generate_series for rows
Regex idiom the character range [a-z] and the count range {2,5}, both with included ends
HTML n/a markup; <input type="range"> is a slider control, not a range value
CSS n/a style rules have no range values; media queries can test a range of widths

The languages do not agree on the end. Python, Go, Rust .., C# .., Kotlin ..< and Java IntStream.range exclude the end. Kotlin .., Rust ..=, Java rangeClosed, PowerShell and Bash include it. Java documents both: range goes "from startInclusive (inclusive) to endExclusive (exclusive) by an incremental step of 1", and rangeClosed goes "from startInclusive (inclusive) to endInclusive (inclusive) by an incremental step of 1"7. Kotlin says that 1..4 "represents the numbers 1, 2, 3, and 4"8. C# Enumerable.Range takes a count, not an end: it "Generates a sequence of integral numbers within a specified range"9, so Enumerable.Range(2, 5) gives 2 to 6.

Go added a range over an integer in Go 1.22. "For an integer value n, where n is of integer type or an untyped integer constant, the iteration values 0 through n-1 are produced in increasing order"10, and "If n <= 0, the loop does not run any iterations"10. C++20 added std::views::iota, "A range factory that generates a sequence of elements by repeatedly incrementing an initial value. Can be either bounded or unbounded (infinite)"11. JavaScript has no range yet. The TC39 proposal for Iterator.range gives its stage as 2, and it notes that one Stack Overflow question has at least 20 different implementations of a range function12.

The example files show these forms. Python shows len, in, index and slicing on ranges, a huge range that takes no memory, and the error for a step of 0. JavaScript builds ranges with Array.from and a generator with a step. Java uses range, rangeClosed, iterate with a condition and the for loop. C# shows that Enumerable.Range takes a count, System.Range with ^ on an array, and GetOffsetAndLength. Go uses range over an integer, a negative count, an iter.Seq with a step and slice bounds. Rust shows .. and ..=, contains, step_by, rev, a range of all u8 values and ranges as slice indices. C writes a range struct and splits it in two. C++ uses iota, take, stride, reverse and subrange.

PythonGitHub
# range(stop) and range(start, stop) include start and exclude stop.
print(list(range(5)), list(range(2, 7)), list(range(10, 0, -3)))

# The length of a half-open range is stop - start, and an empty range has start >= stop.
r = range(2, 13)
print(len(r), r[0], r[-1], len(range(5, 5)), list(range(5, 2)))

# Two ranges that share a bound are adjacent: they cover 0..9 with no gap and no overlap.
print(list(range(0, 5)) + list(range(5, 10)) == list(range(10)))

# A range stores only start, stop and step, so a huge range is small and in is fast.
big = range(0, 10**18, 2)
print(len(big), 10**17 in big, 10**17 + 1 in big, big.index(10))

# A slice of a range is a range, and equal ranges contain the same numbers.
print(range(10)[2:8:2], range(0) == range(4, 4), range(0, 3) == range(0, 3, 1))

try:
    range(0, 10, 0)
except ValueError as e:
    print("ValueError:", e)
Output
[0, 1, 2, 3, 4] [2, 3, 4, 5, 6] [10, 7, 4, 1]
11 2 12 0 []
True
500000000000000000 True False 5
range(2, 8, 2) True True
ValueError: range() arg 3 must not be zero
  • Verdict: native. range includes the start and excludes the stop, and a negative step counts down. The length is stop - start, and range(5, 5) is empty. Two ranges with a shared bound are adjacent. A range stores only its start, stop and step, so a range of 10**18 numbers has a length, a fast in and index. A slice of a range is a range. A step of 0 raises ValueError.
#include <iostream>
#include <ranges>
#include <vector>

int main() {
    // views::iota(a, b) gives a, a+1, ... and stops before b. It stores only the bounds.
    auto r = std::views::iota(2, 7);
    for (int i : r) std::cout << i << ' ';
    std::cout << "size " << r.size() << '\n';

    // views::iota(a) has no end, so take makes it finite.
    for (int i : std::views::iota(1) | std::views::take(3)) std::cout << i << ' ';
    std::cout << '\n';

    // stride (C++23) gives a step, and reverse goes down.
    for (int i : std::views::iota(0, 10) | std::views::stride(3)) std::cout << i << ' ';
    for (int i : std::views::iota(0, 5) | std::views::reverse) std::cout << i << ' ';
    std::cout << '\n';

    // A range in the library sense is any begin and end pair, such as a vector.
    std::vector<int> v{10, 20, 30, 40};
    auto part = std::ranges::subrange(v.begin() + 1, v.begin() + 3);
    for (int x : part) std::cout << x << ' ';
    std::cout << "empty " << std::ranges::empty(std::views::iota(5, 5)) << '\n';
}
Output
2 3 4 5 6 size 5
1 2 3
0 3 6 9 4 3 2 1 0
20 30 empty 1
  • Verdict: stdlib. views::iota(2, 7) gives 2 to 6 and has a size of 5. views::iota(1) has no end, and take makes it finite. stride (C++23) gives a step, and reverse counts down. A subrange of a vector is a range in the library sense, and iota(5, 5) is empty.
JavaGitHub
import java.util.stream.IntStream;

public class Main {
    public static void main(String[] args) {
        // range excludes the end, and rangeClosed includes it.
        System.out.println(IntStream.range(0, 5).boxed().toList() + " " + IntStream.rangeClosed(1, 5).boxed().toList());

        // An empty range gives no items. The sum of 1 to 100 needs rangeClosed.
        System.out.println(IntStream.range(5, 5).count() + " " + IntStream.range(1, 100).sum() + " " + IntStream.rangeClosed(1, 100).sum());

        // IntStream has no step argument. iterate with a condition gives a range with a step.
        System.out.println(IntStream.iterate(10, i -> i > 0, i -> i - 3).boxed().toList());

        // The classic for loop is the most common range in Java.
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < 5; i++) sb.append(i);
        System.out.println(sb);
    }
}
Output
[0, 1, 2, 3, 4] [1, 2, 3, 4, 5]
0 4950 5050
[10, 7, 4, 1]
01234
  • Verdict: stdlib. IntStream.range excludes the end and rangeClosed includes it, so the sum of range(1, 100) is 4950 and the sum of rangeClosed(1, 100) is 5050. An empty range has a count of 0. IntStream has no step argument, so iterate with a condition gives a count down by 3. The for loop with < is the usual range.
#include <stdbool.h>
#include <stdio.h>

// C has no range type. A struct with a start and an end (excluded) is a common idiom.
typedef struct {
    int start;
    int end;
} range;

static int range_len(range r) { return r.end > r.start ? r.end - r.start : 0; }
static bool range_has(range r, int x) { return r.start <= x && x < r.end; }

int main(void) {
    // The for loop with < is a half-open range.
    for (int i = 2; i < 7; i++) printf("%d ", i);
    printf("\n");

    range r = {2, 13};
    printf("%d %d %d %d\n", range_len(r), range_has(r, 2), range_has(r, 13), range_len((range){5, 5}));

    // Split a range at mid: the two halves are adjacent, with no gap and no overlap.
    int mid = r.start + range_len(r) / 2;
    range lo = {r.start, mid}, hi = {mid, r.end};
    printf("[%d,%d) [%d,%d) %d\n", lo.start, lo.end, hi.start, hi.end, range_len(lo) + range_len(hi));

    // A count down with an unsigned index: i-- > 0 stops after 0, so it does not wrap around.
    unsigned a[] = {10, 20, 30};
    for (size_t i = sizeof a / sizeof a[0]; i-- > 0;) printf("%u ", a[i]);
    printf("\n");
    return 0;
}
Output
2 3 4 5 6
11 1 0 0
[2,7) [7,13) 11
30 20 10
  • Verdict: idiom. C has no range type. The for loop with < is a half-open range, and a struct with a start and an end gives the length and a membership test. A split at the middle gives two adjacent ranges. An unsigned count down uses i-- > 0, so it stops after 0.
using System;
using System.Linq;

class Program
{
    static void Main()
    {
        // Enumerable.Range takes a start and a count, not an end.
        Console.WriteLine($"{string.Join(",", Enumerable.Range(2, 5))} {Enumerable.Range(1, 100).Sum()}");

        // A System.Range a..b on an array includes a and excludes b, and ^n counts from the end.
        int[] a = { 10, 20, 30, 40, 50 };
        Console.WriteLine($"{string.Join(",", a[1..3])} {string.Join(",", a[^2..])} {string.Join(",", a[..^3])} {a[^1]}");

        // A Range is a value. GetOffsetAndLength turns it into numbers for a given length.
        Range r = 1..^1;
        var (offset, length) = r.GetOffsetAndLength(a.Length);
        Console.WriteLine($"{r} {offset} {length} {a[..].Length == a.Length}");

        // A negative count throws.
        try
        {
            Enumerable.Range(0, -1);
        }
        catch (ArgumentOutOfRangeException e)
        {
            Console.WriteLine(e.GetType().Name);
        }
    }
}
Output
2,3,4,5,6 5050
20,30 40,50 10,20 50
1..^1 1 3 True
ArgumentOutOfRangeException
  • Verdict: native. Enumerable.Range takes a start and a count, so Range(2, 5) gives 2 to 6. On an array, a[1..3] includes 1 and excludes 3, and ^n counts from the end. A System.Range is a value, and GetOffsetAndLength turns 1..^1 into an offset and a length. A negative count throws ArgumentOutOfRangeException at once.
JavaScriptGitHub
// JavaScript has no range type. Array.from with a length and a map function is the common idiom.
console.log(Array.from({ length: 5 }, (_, i) => i), [...Array(3).keys()]);

// A generator gives a lazy half-open range with a step.
function* range(start, stop, step = 1) {
  if (step === 0) throw new RangeError("step must not be 0");
  for (let i = start; step > 0 ? i < stop : i > stop; i += step) yield i;
}
console.log([...range(2, 7)], [...range(10, 0, -3)], [...range(5, 5)]);

// for...of over the generator does not build an array, so a large range costs no memory.
let total = 0;
for (const i of range(0, 1_000_000)) total += i;
console.log(total);

// Iterator.range is a TC39 proposal. This runtime may not have it yet.
console.log(typeof Iterator.range);
Output
[ 0, 1, 2, 3, 4 ] [ 0, 1, 2 ]
[ 2, 3, 4, 5, 6 ] [ 10, 7, 4, 1 ] []
499999500000
undefined
  • Verdict: idiom. JavaScript has no range type. Array.from with a length and Array(n).keys() make arrays of indices. A generator gives a lazy half-open range with a step, and a loop over it builds no array. Iterator.range is a TC39 proposal, and this runtime does not have it.
package main

import (
	"fmt"
	"iter"
	"slices"
)

// Range gives start, start+step, ... and stops before stop.
func Range(start, stop, step int) iter.Seq[int] {
	return func(yield func(int) bool) {
		for i := start; (step > 0 && i < stop) || (step < 0 && i > stop); i += step {
			if !yield(i) {
				return
			}
		}
	}
}

func main() {
	// Since Go 1.22, range over an integer n gives 0 through n-1.
	for i := range 5 {
		fmt.Print(i, " ")
	}
	fmt.Println()

	// If n <= 0, the loop runs zero times.
	n := -3
	count := 0
	for range n {
		count++
	}
	fmt.Println("iterations:", count)

	// An iterator function gives a range with any start and step.
	fmt.Println(slices.Collect(Range(2, 7, 1)), slices.Collect(Range(10, 0, -3)))

	// A slice expression a[low:high] uses a half-open range of indices.
	a := []string{"a", "b", "c", "d", "e"}
	fmt.Println(a[1:3], len(a[1:3]), a[:2], a[3:])
}
Output
0 1 2 3 4
iterations: 0
[2 3 4 5 6] [10 7 4 1]
[b c] 2 [a b] [d e]
  • Verdict: native. Since Go 1.22, for i := range 5 gives 0 to 4, and a count of 0 or less runs no iterations. An iter.Seq function gives a range with any start and step. A slice expression a[low:high] uses a half-open range of indices.
RustGitHub
fn main() {
    // start..end excludes end, and start..=end includes it.
    let r = 0..5;
    println!("{:?} {:?} {}", r.clone().collect::<Vec<_>>(), (1..=5).collect::<Vec<_>>(), r.len());

    // A range is a value: it has contains and is_empty, and an empty range has start >= end.
    println!("{} {} {} {}", (0..5).contains(&5), (0..=5).contains(&5), (5..2).is_empty(), (3..=3).is_empty());

    // step_by and rev change the order and the step.
    println!("{:?} {:?}", (0..10).step_by(3).collect::<Vec<_>>(), (0..5).rev().collect::<Vec<_>>());

    // Range<u8> cannot hold the range of all u8 values, because 256 does not fit in u8.
    println!("{}", (0u8..=255).count());

    // A range indexes a slice or a string.
    let a = [10, 20, 30, 40, 50];
    println!("{:?} {:?} {:?} {}", &a[1..3], &a[..2], &a[3..], &"hello"[1..4]);

    // An index past the end returns None with get, and panics with [].
    println!("{:?} {:?}", a.get(3..9), a.get(3..5));
}
Output
[0, 1, 2, 3, 4] [1, 2, 3, 4, 5] 5
false true true false
[0, 3, 6, 9] [4, 3, 2, 1, 0]
256
[20, 30] [10, 20] [40, 50] ell
None Some([40, 50])
  • Verdict: native. 0..5 excludes 5 and 1..=5 includes it. A range is a value with len, contains and is_empty, and 5..2 is empty. step_by and rev change the step and the order. 0u8..=255 has 256 items, which Range cannot hold. A range indexes a slice or a string, and get returns None for a range past the end.
  • Inclusive ranges. A closed range [a, b] has b - a + 1 items. It is natural for ranges of values such as dates or the letters a to z, and it is the only way to name a range that ends at the largest value of a type. Rust notes that Range<u8> "cannot represent the range that covers all of u8"4. In the Rust example, 0u8..=255 has 256 items.
  • Steps. A range with a step, such as range(0, 10, 3), gives every third number. Kotlin calls this a progression, and 0..8 step 2 gives 024688. A negative step counts down.
  • Open-ended ranges. Rust a.. and C++ iota(a) have no end. They are infinite lazy sequences, and the program must stop them, for example with take. See laziness.
  • Ranges of indices. C# 1..^1 and Python slice(1, -1) name a part of any array, and the actual positions depend on the length. C# GetOffsetAndLength turns the range into an offset and a length for a given length.
  • Ranges as data. PostgreSQL stores ranges in columns. "Range types are data types representing a range of values of some element type"13. A range value can be empty or unbounded, and its text form shows each bound: "an inclusive lower bound is represented by “[” while an exclusive lower bound is represented by “(”"13. For a discrete type, where "A discrete range is one whose element type has a well-defined “step”"13, the built-in types "int4range, int8range, and daterange all use a canonical form that includes the lower bound and excludes the upper bound"13.
  • Ranges of a type. A type such as a 16-bit integer has a range of values. Wikipedia's example: "the range of a signed 16-bit integer variable is all the integers from −32,768 to +32,767"1. See integer overflow.

Pitfalls

  • Off by one. The most common range error is a wrong end. IntStream.range(1, 100).sum() is 4950, not the sum of 1 to 100, because the end is excluded; rangeClosed(1, 100) gives 5050. Read the rule of each language: Kotlin .. and PowerShell .. include the end, and Rust .. and C# .. exclude it.
  • Count or end. Enumerable.Range(2, 5) in C# ends at 6, because the second argument is a count. The same call in Python, range(2, 5), ends at 4.
  • Unsigned count down. In C, for (size_t i = n - 1; i >= 0; i--) never ends, because an unsigned i is always 0 or more and wraps around after 0. The C example uses for (size_t i = n; i-- > 0;), which tests before it subtracts.
  • Overflow at the end. A loop such as for (unsigned char i = 0; i <= 255; i++) never stops, because i wraps from 255 to 0. Rust's 0u8..=255 and Python's arbitrary-size integers avoid this.
  • Empty and backward ranges. range(5, 2) and Rust 5..2 are empty, not a count down. A count down needs a negative step or rev. A step of 0 is an error in Python and does not end in a hand-written loop.
  • Out of bounds. A range that goes past the end of an array panics in Rust, throws in C# and Java, and reads memory outside the array in C. Rust's get(3..9) returns None instead. See out-of-bounds read.
  • Floating-point ranges. A range with a fractional step gathers rounding errors, so the last item can be missing or extra. Compute each item as start + i * step from an integer range instead.

Cost

Operation Range value (Python, Rust, C++ iota) Materialized list
make constant linear in the length
memory the bounds and the step all items
length constant (arithmetic) constant
item i constant (arithmetic) constant
membership test x in r constant (arithmetic) linear
loop over all items linear, no allocation linear

A loop over a range needs only a counter, as in for (i = a; i < b; i++), so it costs the same as a counting loop with an index. A range that the program turns into a list, such as list(range(n)) or IntStream.range(0, n).boxed().toList(), pays for memory for each item.

History

Dijkstra wrote "Why numbering should start at zero" (EWD 831) on 11 August 19822. He gave the half-open convention and noted the experience with the Mesa language at Xerox PARC, which had notations for all four conventions: "Extensive experience with Mesa has shown that the use of the other three conventions has been a constant source of clumsiness and mistakes"2. The note is also the usual argument for indices from 0, because the indices of an array of length n are then 0 ≤ i < n.

Later languages made half-open ranges the default. Python's range, the C++ iterator pair [begin, end), Go slice expressions and Rust .. all exclude the end. Newer additions are the C++20 iota_view11, the Go 1.22 range over integers10 and the C# index and range operators ^ and ..6. The TC39 proposal for Iterator.range is at stage 212.

References

  1. Range (computer programming), Wikipedia, Introduction; Range of an array; Range as an alternative to iterator
  2. Edsger W. Dijkstra, Why numbering should start at zero (EWD 831), 1982, Full text
  3. Built-in Types, The Python Standard Library, Ranges
  4. Struct Range, The Rust Standard Library, Description
  5. Struct RangeInclusive, The Rust Standard Library, Description
  6. Indices and ranges, C# documentation, Language support for indices and ranges
  7. Interface IntStream, Java SE 25 API, range; rangeClosed
  8. Ranges and progressions, Kotlin documentation, Ranges; Progression
  9. Enumerable.Range method, .NET API reference, Definition; Exceptions
  10. The Go Programming Language Specification, For statements with range clause
  11. std::ranges::views::iota, std::ranges::iota_view, cppreference.com, Description
  12. Iterator.range proposal, TC39, README
  13. Range Types, PostgreSQL documentation, Built-in Range and Multirange Types; Inclusive and Exclusive Bounds; Discrete Range Types

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/9E82V0/text.yaml