Fixed arrays
Try a fixed-size array literal and read its items.
Solidity 0.8.36REPL mode
Why use this example
Use this pattern to explore how Solidity represents typed values and how state-changing expressions affect storage. The entry isolates fixed arrays so its input, result, and state changes stay easy to compare.
Solidity to run
uint256[3] memory values = [uint256(4), 5, 6]
values
values[1]What to expect
The fixed array is displayed with all three values and its second item evaluates to 5.
Continue the investigation
Change a value, add another expression, or open Inspect after the run. Accepted entries remain available to the next entry, and the clean replay keeps the complete result reproducible.
Read about state and storage Reproducible investigation