contract ExampleContract { // ACCEPTED: [[1,2],[3,4],[5,6]] -> returns 6 function getLast(uint256[2][3] calldata nestedArray) public pure returns (uint256) { return nestedArray[2][1]; // nestedArray[2] -> [5,6] then get the 1st index item -> 6 } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter