Preview:
contract ExampleContract {
	
	uint256[] public myArray;

	function removeAt(uint256 index) public {
		delete myArray[index];
		// sets the value at index to be zero

		// the following code is equivalent
		// myArray[index] = 0;

		// myArray.length does not change in either circumstance
	}
}
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