Programming Search⌘K

Conceptcore

Slice

Also called array slice, slicing, subarray, sublist, view, span, Span<T>, std::span, subList, slice expression.

A slice is a run of consecutive items of an array or a list, chosen by a start and an end index. Some languages copy the items, and others give a view that shares the memory.

Applies to
core-languages

Idea

A slice is a part of a sequence: the items from a start index up to an end index. Wikipedia defines array slicing as "an operation that extracts a subset of elements from an array and packages them as another array, possibly in a different dimension from the original"1. The usual example is a substring, such as "ell" in "hello".

Most languages use a half-open range: the start is in the slice and the end is not. So xs[1:3] has the items at indices 1 and 2, the length of the slice is end - start, and xs[0:k] and xs[k:n] split the sequence with no gap and no overlap.

The important question is whether the slice copies the items or shares them. Wikipedia notes: "Also depending on the language, the elements of the new array may be aliased to (i.e., share memory with) those of the original array"1. A copy is safe to change, and it costs time and memory in proportion to its length. A view costs almost nothing to make, but a change through the view changes the original.

# A slice selects a run of items by a start index and an end index. The end is not included.
xs = [10, 20, 30, 40, 50]
print(xs[1:3], xs[:2], xs[3:], xs[-2:])

# A step picks every k-th item. A negative step walks backward.
print(xs[::2], xs[::-1])

# Bounds out of range are cut to the list, so a slice never raises IndexError.
print(xs[3:99], xs[7:9])

# A list slice is a copy. A change to the copy does not change the list.
part = xs[1:3]
part[0] = 99
print(part, xs)

# A memoryview slice is a view. A change through the view changes the buffer.
buf = bytearray(b"hello")
view = memoryview(buf)[1:4]
view[0] = ord("E")
print(bytes(view), buf)
Output
[20, 30] [10, 20] [40, 50] [40, 50]
[10, 30, 50] [50, 40, 30, 20, 10]
[40, 50] []
[99, 30] [10, 20, 30, 40, 50]
b'Ell' bytearray(b'hEllo')

The Python list slice part is a new list, so the change to part[0] leaves xs as it was. The memoryview slice is a window on the bytes of buf, so the write of "E" through the view changes buf.

How it works

The range of indices. A slice names a start, an end and sometimes a step. Python gives the rule: "The slice of s from i to j is defined as the sequence of items with index k such that i <= k < j"2. A missing start means 0, and a missing end means the length. Python, Ruby and PowerShell also accept negative indices, which count from the end, and C# uses ^1 for the last item. The step selects every k-th item, and a negative step goes backward.

Bounds. Languages differ when an index is out of range. Python cuts the bounds to the sequence: "If i or j is greater than len(s), use len(s)"2, so a slice never fails. JavaScript's slice does the same. Go, Rust, Java and C# check the bounds and stop the program or throw. Rust also has get, which returns None for a bad range.

Copies. In Python, JavaScript and the C# range on an array, a slice makes a new sequence. MDN says that slice "returns a shallow copy of a portion of an array into a new array object", and "The original array will not be modified"3. Wikipedia says that for Python's standard lists "every slice is a copy"1. The copy is shallow: if the items are references, the new sequence refers to the same objects.

Views. A view stores a reference to the first item and a length. It does not own the items. Go defines a slice as "a descriptor for a contiguous segment of an underlying array"4, and the Go blog explains: "It consists of a pointer to the array, the length of the segment, and its capacity (the maximum length of the segment)"5. Rust says: "Slices are a view into a block of memory represented as a pointer and a length"6, and the book adds: "A slice is a kind of reference, so it does not have ownership"7. C++ std::span "describes an object that can refer to a contiguous sequence of objects with the first element of the sequence at position zero"8. C# Span<T> "Provides a type-safe and memory-safe representation of a contiguous region of arbitrary memory"9. NumPy slices are views too: "All arrays generated by basic slicing are always views of the original array"10.

Views of lists. Java's subList is a view of any list, not only of an array: "The returned list is backed by this list, so non-structural changes in the returned list are reflected in this list, and vice-versa"11. A view of a list can be invalid after the list changes its size, so Java checks for this case.

Shared memory. Because a view shares memory, a slice of a slice is a view of the same array. Go states the rule: "A slice therefore shares storage with its array and with other slices of the same array"4. See in-place and copying operations.

In languages

LanguageVerdictNote
PythonNative
C++Standard library
JavaStandard library
CIdiom
C#Native
JavaScriptNative
TypeScriptNativeTypeScript uses the JavaScript slice, splice and subarray methods with types. slice on a T[] returns a T[]. No example file exists.
GoNative
RustNative
KotlinStandard librarySlice(range) and copyOfRange copy a part of a list or an array, and subList returns a view as in Java. No example file exists because kotlinc is not installed.
SQLIdiomORDER BY with LIMIT and OFFSET, or OFFSET and FETCH, returns a range of the sorted rows. Without ORDER BY the range has no fixed order.
BashNative${a[@]:start:count} expands to a range of an indexed array, and ${s:start:len} gives a substring. The result is a copy. No example file exists.
PowerShellNative$a[1..3] makes a new array with the items at 1, 2 and 3, so the end is included. $a[-2..-1] takes the last two items. No example file exists because pwsh is not installed.
HTMLDoes not applyHTML is markup. It has no data operations.
CSSDoes not applyCSS style rules have no slices. Selectors such as nth-child select elements, not data.
Regular expressionsDoes not applyA regular expression matches text. It has no slices.
Language Verdict Mechanism
Python native s[i:j:k] copies a list, a tuple or a string; memoryview slices are views; slice assignment and del change a list
JavaScript native slice copies an array; subarray gives a view of a typed array; splice removes a range in place
TypeScript native the JavaScript methods, typed
Java stdlib Arrays.copyOfRange copies; List.subList is a view
Kotlin stdlib slice and copyOfRange copy; subList is a view
C# native a[i..j] copies an array; Span<T> and Memory<T> slices are views; List<T>.GetRange copies
Go native a[low:high] and a[low:high:max] make views that share the array
Rust native &v[a..b] and &mut v[a..b] borrow a view; to_vec copies
C idiom a pointer to the first item and a count; no bounds check
C++ stdlib std::span with subspan, first and last; std::string_view for text
Bash native ${a[@]:start:count} copies a range of an indexed array; ${s:start:len} for a string
PowerShell native $a[1..3] makes a new array; the range includes the end
SQL idiom LIMIT and OFFSET, or OFFSET ... FETCH, take a range of the sorted rows
Regex n/a a pattern matches text; it has no slices
HTML n/a markup; no data operations
CSS n/a style rules have no slices; :nth-child selects elements, not data

Most languages exclude the end index. C# says: "The left-hand operand is an inclusive start of a range. The right-hand operand is an exclusive end of a range"12. Some older and some scripting languages include it. In Fortran 90, "Both bounds are inclusive and can be omitted"1, and the PowerShell range 1..3 has the items 1, 2 and 3. A program that moves code between these languages must change the end index.

Go slices have a capacity as well as a length. A slice can grow into the unused part of its array, so an append to one slice can write over items that another slice sees. The full slice expression a[low : high : max] limits the capacity: "it controls the resulting slice's capacity by setting it to max - low"4. The next append then copies to a new array.

The example files show these forms. Python shows slice objects, slice.indices, slice assignment that changes the length, del with a step and a shallow copy of nested lists. JavaScript shows a shallow copy, splice and the two methods of a typed array. Java shows Arrays.copyOfRange, a subList view, subList(...).clear() and the exception after a structural change. C# shows a range that copies an array, ^ indices, a Span<T> view and GetRange. Go shows a slice that shares its array, an append that writes into the array, the full slice expression and slices.Clone. Rust shows shared and mutable slices, split_at_mut, get with a range and a string slice on character boundaries. C builds a slice from a pointer and a count. C++ shows std::span with subspan, a fixed extent and a copy built from iterators.

PythonGitHub
# s[i:j:k] calls __getitem__ with a slice object.
s = slice(1, None, 2)
xs = list("abcdefg")
print(xs[s], s.indices(len(xs)))

# Assignment to a slice can change the length of the list.
ys = [0, 1, 2, 3, 4]
ys[1:3] = ["a", "b", "c", "d"]
print(ys, len(ys))
del ys[::2]
print(ys)

# An extended slice with a step must get the same number of items.
try:
    ys[::2] = [1]
except ValueError as e:
    print("ValueError:", e)

# Strings and tuples slice to new strings and tuples.
word = "programming"
print(word[3:7], word[-4:], (1, 2, 3, 4)[1:3])

# A slice copies only the outer list. The inner lists are shared.
grid = [[1, 2], [3, 4]]
top = grid[:1]
top[0].append(99)
print(grid)
Output
['b', 'd', 'f'] (1, 7, 2)
[0, 'a', 'b', 'c', 'd', 3, 4] 7
['a', 'c', 3]
ValueError: attempt to assign sequence of size 1 to extended slice of size 2
gram ming (2, 3)
[[1, 2, 99], [3, 4]]
  • Verdict: native. s[i:j:k] passes a slice object to getitem, and indices gives the bounds for a length. An assignment to a slice can change the length of a list, and del removes every second item. An extended slice needs the same number of items, or it raises ValueError. A slice copies only the outer list, so the inner lists are shared.
#include <array>
#include <iostream>
#include <span>
#include <vector>

void show(const char* name, std::span<const int> s) {
    std::cout << name << ':';
    for (int x : s) {
        std::cout << ' ' << x;
    }
    std::cout << " (size " << s.size() << ")\n";
}

int main() {
    // std::span is a view: a pointer and a size. It does not own the items.
    std::vector<int> v{10, 20, 30, 40, 50};
    std::span<int> all(v);
    std::span<int> mid = all.subspan(1, 3);
    mid[0] = 99;
    show("mid", mid);
    show("v", v);

    // first and last take items from either end.
    show("first2", all.first(2));
    show("last2", all.last(2));

    // A span can have a size fixed at compile time.
    std::array<int, 4> a{1, 2, 3, 4};
    std::span<int, 4> fixed(a);
    std::span<int, 2> head = fixed.first<2>();
    std::cout << head.extent << ' ' << std::span<int>::extent << '\n';

    // To copy a part, build a new container from a range of iterators.
    std::vector<int> copy(v.begin() + 1, v.begin() + 3);
    copy[0] = 1;
    show("copy", copy);
    show("v", v);
}
Output
mid: 99 30 40 (size 3)
v: 10 99 30 40 50 (size 5)
first2: 10 99 (size 2)
last2: 40 50 (size 2)
2 18446744073709551615
copy: 1 30 (size 2)
v: 10 99 30 40 50 (size 5)
  • Verdict: stdlib. std::span is a view, so a write through subspan changes the vector. first and last take items from either end. A span can have a fixed extent in its type; a dynamic span has the extent std::dynamic_extent, the largest size_t. A copy needs a new container built from iterators.
JavaGitHub
import java.util.ArrayList;
import java.util.Arrays;
import java.util.ConcurrentModificationException;
import java.util.List;

public class Main {
    public static void main(String[] args) {
        // Arrays.copyOfRange copies a part of an array. The end index is not included.
        int[] a = {10, 20, 30, 40, 50};
        int[] part = Arrays.copyOfRange(a, 1, 3);
        part[0] = 99;
        System.out.println(Arrays.toString(part) + " " + Arrays.toString(a));

        // subList is a view. A change through the view changes the list behind it.
        List<Integer> xs = new ArrayList<>(List.of(10, 20, 30, 40, 50));
        List<Integer> view = xs.subList(1, 3);
        view.set(0, 99);
        System.out.println(view + " " + xs);

        // Clearing a view removes that range from the list.
        xs.subList(0, 2).clear();
        System.out.println(xs);

        // A structural change to the list makes an older view unusable.
        List<Integer> old = xs.subList(0, 1);
        xs.add(60);
        try {
            System.out.println(old.get(0));
        } catch (ConcurrentModificationException e) {
            System.out.println("ConcurrentModificationException");
        }

        // Bounds are checked: an end past the size throws.
        try {
            xs.subList(1, 10);
        } catch (IndexOutOfBoundsException e) {
            System.out.println("IndexOutOfBoundsException");
        }
    }
}
Output
[99, 30] [10, 20, 30, 40, 50]
[99, 30] [10, 99, 30, 40, 50]
[30, 40, 50]
ConcurrentModificationException
IndexOutOfBoundsException
  • Verdict: stdlib. Arrays.copyOfRange copies a range of an array. subList is a view, so set through it changes the list, and clear on a view removes that range. After the list changes its size, the old view throws ConcurrentModificationException. An end past the size throws IndexOutOfBoundsException.
#include <stddef.h>
#include <stdio.h>

/* C has no slice type. A slice is a pointer to the first item and a count. */
typedef struct {
    int *data;
    size_t len;
} IntSlice;

/* Return the items [lo, hi) of s, or an empty slice if the bounds are wrong. */
static IntSlice slice(IntSlice s, size_t lo, size_t hi) {
    if (lo > hi || hi > s.len) {
        return (IntSlice){NULL, 0};
    }
    return (IntSlice){s.data + lo, hi - lo};
}

static void print(const char *name, IntSlice s) {
    printf("%s:", name);
    for (size_t i = 0; i < s.len; i++) {
        printf(" %d", s.data[i]);
    }
    printf(" (len %zu)\n", s.len);
}

int main(void) {
    int arr[] = {10, 20, 30, 40, 50};
    IntSlice all = {arr, sizeof arr / sizeof arr[0]};
    IntSlice mid = slice(all, 1, 4);
    print("mid", mid);

    /* The slice points into arr, so a write through it changes arr. */
    mid.data[0] = 99;
    print("all", all);

    /* A slice of a slice uses offsets from its own start. */
    IntSlice inner = slice(mid, 1, 3);
    print("inner", inner);
    printf("%td\n", inner.data - arr);

    /* The bounds check is the program's job. This range is refused. */
    IntSlice bad = slice(all, 3, 9);
    printf("%d\n", bad.data == NULL);
    return 0;
}
Output
mid: 20 30 40 (len 3)
all: 10 99 30 40 50 (len 5)
inner: 30 40 (len 2)
2
1
  • Verdict: idiom. C has no slice type. A struct with a pointer and a count works as a slice, and a write through it changes the array. A slice of a slice is a pointer further into the same array. The bounds check is the program's own code.
using System;
using System.Collections.Generic;

class Program
{
    static void Main()
    {
        // a[1..3] on an array makes a new array. The end index is not included.
        int[] a = { 10, 20, 30, 40, 50 };
        int[] part = a[1..3];
        part[0] = 99;
        Console.WriteLine($"{string.Join(",", part)} {string.Join(",", a)}");

        // ^1 counts from the end. a[^2..] is the last two items.
        Console.WriteLine($"{a[^1]} {string.Join(",", a[^2..])}");

        // A Span<T> slice is a view of the same memory.
        Span<int> view = a.AsSpan()[1..3];
        view[0] = 99;
        Console.WriteLine($"{view.Length} {string.Join(",", a)}");

        // GetRange copies a part of a List<T> into a new list.
        var list = new List<int>(a);
        List<int> range = list.GetRange(1, 2);
        range[0] = -1;
        Console.WriteLine($"{string.Join(",", range)} {list[1]}");

        // A range out of bounds throws.
        try
        {
            int[] bad = a[3..9];
        }
        catch (ArgumentOutOfRangeException e)
        {
            Console.WriteLine(e.GetType().Name);
        }
    }
}
Output
99,30 10,20,30,40,50
50 40,50
2 10,99,30,40,50
-1,30 99
ArgumentOutOfRangeException
  • Verdict: native. a[1..3] on an array makes a new array, and ^ counts from the end. A Span slice is a view, so a write through it changes the array. List.GetRange copies. A range past the end throws ArgumentOutOfRangeException.
JavaScriptGitHub
// Array.prototype.slice returns a new array. The end index is not included.
const xs = [10, 20, 30, 40, 50];
console.log(xs.slice(1, 3), xs.slice(-2), xs.slice(3, 99));

// The copy is shallow: a change to the new array does not touch xs,
// but objects inside are shared.
const people = [{ name: "Ann" }, { name: "Bo" }];
const firstOne = people.slice(0, 1);
firstOne[0].name = "Anna";
firstOne.push({ name: "Cy" });
console.log(people.length, people[0].name);

// splice is different: it removes items from the array itself and returns them.
const ys = [1, 2, 3, 4, 5];
const removed = ys.splice(1, 2);
console.log(removed, ys);

// A typed array has both: slice copies, subarray is a view of the same buffer.
const bytes = new Uint8Array([1, 2, 3, 4, 5]);
const copy = bytes.slice(1, 3);
const view = bytes.subarray(1, 3);
copy[0] = 77;
view[1] = 88;
console.log(Array.from(bytes), Array.from(copy), Array.from(view), view.byteOffset);
Output
[ 20, 30 ] [ 40, 50 ] [ 40, 50 ]
2 Anna
[ 2, 3 ] [ 1, 4, 5 ]
[ 1, 2, 88, 4, 5 ] [ 77, 3 ] [ 2, 88 ] 1
  • Verdict: native. slice copies a range and cuts bounds that are out of range. The copy is shallow, so a change to a shared object shows in both arrays, but a push to the copy does not. splice removes a range from the array itself. On a typed array, slice copies and subarray is a view, so only the write through the view reaches bytes.
package main

import (
	"fmt"
	"slices"
)

func main() {
	// A slice expression makes a new slice header over the same array. No item is copied.
	arr := [5]int{10, 20, 30, 40, 50}
	s := arr[1:3]
	s[0] = 99
	fmt.Println(s, len(s), cap(s), arr)

	// The capacity reaches to the end of the array, so append writes into arr.
	s = append(s, 77)
	fmt.Println(s, arr)

	// A full slice expression a[low:high:max] limits the capacity.
	// The next append must copy, so arr does not change.
	t := arr[1:3:3]
	t = append(t, 66)
	fmt.Println(t, cap(t) >= 3, arr)

	// A slice can be resliced up to its capacity, past its length.
	u := arr[0:1]
	fmt.Println(u, u[:4])

	// slices.Clone and copy make independent slices.
	c := slices.Clone(arr[:2])
	c[0] = 1
	dst := make([]int, 2)
	n := copy(dst, arr[3:])
	fmt.Println(c, dst, n, arr[0])
}
Output
[99 30] 2 4 [10 99 30 40 50]
[99 30 77] [10 99 30 77 50]
[99 30 66] true [10 99 30 77 50]
[10] [10 99 30 77]
[1 99] [77 50] 2 10
  • Verdict: native. arr[1:3] shares the array, so a write through the slice changes arr. Its capacity reaches the end of arr, so append writes 77 into arr. The full slice expression arr[1:3:3] limits the capacity, so the next append copies. A slice can be resliced past its length up to its capacity. slices.Clone and copy make independent slices.
RustGitHub
fn sum(items: &[i32]) -> i32 {
    items.iter().sum()
}

fn main() {
    // &v[a..b] borrows a part of a Vec or an array as a slice: a pointer and a length.
    let v = vec![10, 20, 30, 40, 50];
    let part = &v[1..3];
    println!("{:?} {} {} {}", part, part.len(), sum(part), sum(&v[3..]));

    // A mutable slice changes the items of the Vec.
    let mut w = v.clone();
    let tail = &mut w[3..];
    tail[0] = 99;
    tail.reverse();
    println!("{:?}", w);

    // split_at_mut gives two mutable slices that do not overlap.
    let (left, right) = w.split_at_mut(2);
    left[0] += right[0];
    println!("{:?} {:?}", left, right);

    // get returns None for a range out of bounds. &v[3..9] would panic.
    println!("{:?} {:?}", v.get(3..9), v.get(3..5));

    // A string slice must start and end on a character boundary.
    let s = "héllo";
    println!("{} {} {}", &s[0..1], &s[1..3], s.is_char_boundary(2));

    // to_vec copies a slice into a new Vec.
    let mut owned = part.to_vec();
    owned.push(1);
    println!("{:?} {:?}", owned, part);
}
Output
[20, 30] 2 50 90
[10, 20, 30, 50, 99]
[40, 20] [30, 50, 99]
None Some([40, 50])
h é false
[20, 30, 1] [20, 30]
  • Verdict: native. &v[1..3] borrows a part of a Vec, and one function takes slices of any length. A mutable slice changes the Vec, and split_at_mut gives two parts that do not overlap. get returns None for a range out of bounds. A string slice must end on a character boundary, and to_vec copies.
  • Strides and steps. A slice with a step skips items. Python and NumPy accept a step, and Fortran 90 writes lower_bound:upper_bound[:stride]1. A view with a step stores the step as well as the start and the length.
  • Multidimensional slices. NumPy and Fortran slice a matrix in each dimension, so m[:, 0] is a column. "Basic slicing extends Python’s basic concept of slicing to N dimensions"10.
  • String slices. A substring is a slice of a string. Rust's &str and C++ std::string_view are views. In Rust, a slice of a UTF-8 string must start and end on a character boundary. See get a substring.
  • Slice assignment. In Python, xs[1:3] = items replaces a range with a new sequence, and the list can grow or shrink.
  • Iterator slices. itertools.islice in Python and skip and take in Rust select a range of a stream without indices.
  • Ranges. A range such as 1..3 or range(1, 3) names the indices without the items. Many languages use the same range value to make a slice. A slice is one kind of sequence: it has a length and integer indices.

Pitfalls

  • A view that the program thinks is a copy. A change through a Go slice, a Java subList, a NumPy slice or a Span<T> changes the original. Copy the slice when the code needs its own data. The task slice a list makes a copy in ten languages.
  • A copy that the program thinks is a view. A change to a Python list slice or a JavaScript slice result does not reach the original. Use slice assignment, splice or an index to change the original.
  • Shallow copies. A slice copies the references, not the objects. In the Python example, an append to an inner list of a sliced grid changes the original grid.
  • A Go append through a shared array. In the Go example, append(s, 77) writes 77 into the array, because s has spare capacity. Use a[low:high:high] or slices.Clone before an append that must not touch the array.
  • A small view that keeps a large array. The Go blog warns: "The full array will be kept in memory until it is no longer referenced"5. NumPy gives the same warning and says: "In such cases an explicit copy() is recommended"10. See memory leaks.
  • An old view after a change in size. A Java subList throws ConcurrentModificationException after the list changes its size. A C++ std::span or a C pointer into a std::vector becomes invalid when the vector moves its items, and its use is undefined behavior.
  • Bounds in C. A C slice is only a pointer and a count. The program must check the bounds, or a read past the end is an out-of-bounds read.
  • Inclusive and exclusive ends. PowerShell and Fortran include the end index. Most other languages do not.

Cost

Operation Copy View
make a slice of k items time and memory in proportion to k constant
read or write item i of the slice constant constant, one addition to the start
change the original no effect on the slice the slice sees the change
memory kept alive only the k items the whole array or buffer

A view is cheap to make and to pass to a function, because it is only a pointer and a length. Go says that slicing "creates a new slice value that points to the original array. This makes slice operations as efficient as manipulating array indices"5. Rust and C++ functions take a slice or a span instead of a Vec or a std::vector, so one function accepts an array, a vector or a part of either. A copy costs more but is independent of the original, so it can outlive the original and is safe to share between threads.

History

Wikipedia says that "Kenneth Iverson's APL (1957) had very flexible multi-dimensional array slicing, which contributed much to the language's expressive power and popularity" and that "ALGOL 68 (1968) introduced comprehensive multi-dimension array slicing and trimming features"1. PL/I, from 1964, could map a slice of a base array to a new array, and Fortran 66 programmers could pass a row of a matrix to a subroutine only1. Fortran 90 added the lower:upper:stride notation1.

Python, from 1991, made the half-open slice with optional bounds a common notation. Go, from 2009, and Rust, from 2015, made the slice a view type and the usual way to pass a sequence to a function. C# added ranges and Span<T>, and C++20 added std::span18.

References

  1. Array slicing, Wikipedia, Introduction; Details; History; 1991 Python; 1992 Fortran 90
  2. Built-in Types, The Python Standard Library, Common Sequence Operations, notes 3 to 5
  3. Array.prototype.slice(), MDN Web Docs, Description
  4. The Go Programming Language Specification, Slice types; Slice expressions; Full slice expressions
  5. Go Slices, usage and internals, The Go Blog, Slice internals; A possible gotcha
  6. Primitive Type slice, The Rust Standard Library, Description
  7. The Slice Type, The Rust Programming Language, 4.3
  8. std::span, cppreference.com, Introduction
  9. Span<T> Struct, .NET API reference, Definition
  10. Indexing on ndarrays, NumPy user guide, Slicing and striding
  11. Interface List, Java SE 25 API, subList
  12. Member access operators and expressions, C# reference, Range operator ..

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/YJ2E6V/text.yaml