chapter8-code-1

PHOTO EMBED

Thu Mar 30 2023 09:57:13 GMT+0000 (Coordinated Universal Time)

Saved by @RareSkills

contract ExampleContract {

	function containsAThree(uint256[][] calldata nestedArray) public pure returns (bool) {

		for (uint256 i = 0; i < nestedArray.length; i++) {
			for (uint256 j = 0; j < nestedArray[0].length; j++) {
				if (nestedArray[i][j] == 3) {
					return true;
				}
			}
		}
		return false;
	}
}
content_copyCOPY