chapter8-code-2
Thu Mar 30 2023 09:57:32 GMT+0000 (Coordinated Universal Time)
Saved by
@RareSkills
contract ExampleContract {
// [[1,2],[3,4],[5,6]] becomes [1,2]
function getRow(uint256[][] calldata nestedArray) public pure returns(uint256[] memory) {
return nestedArray[0];
}
}
content_copyCOPY
Comments