import syntax { array_initialization, list_comprehension } from array_extensions;

let array = [i * i for i: Int in <Int>[1, 2, 3, 4, 5]];

if array[0] != 1 { panic("Invalid value"); }
if array[1] != 4 { panic("Invalid value"); }
if array[2] != 9 { panic("Invalid value"); }
if array[3] != 16 { panic("Invalid value"); }
if array[4] != 25 { panic("Invalid value"); }