External function members
Inspect the address and selector carried by an external function value.
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 external function members so its input, result, and state changes stay easy to compare.
Solidity to run
contract FunctionTarget {
function increment(uint256 value) external pure returns (uint256) { return value + 1; }
}
FunctionTarget target = new FunctionTarget()
function(uint256) external pure returns (uint256) operation = target.increment
operation.address
operation.selector
operation(41)Official Solidity reference
Compare this focused investigation with the complete language definition in the Solidity documentation.
Function type membersWhat to expect
The function value exposes its deployed contract address and selector, then returns 42 when called.
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