int[3] array = [1, 2, 3]; assert(array[0..$].equals!((a,b) => a==b)(array[0..$]));
See Implementation