To fully carry into effect the purposes of sections 50-1801 through 50-1835 every city shall have power to construct, enlarge, diminish, alter or change all irrigation ditches, aqueducts, pipelines, flumes, canals or laterals within its corporate limits that may be necessary to convey, control, distribute, apportion and regulate such irrigation water to the inhabitants thereof in accordance herewith.