Return a slice to the current array that is bounded by start and end. start must be less than or equal to end and end must be less than or equal to length.
a positive integer
Complexity: O(1)
an array that references the current array.
import std.algorithm.comparison : equal; auto stuff = [1, 2, 3]; auto a = Array!int(stuff); assert(equal(a[], stuff)); assert(equal(a[1 .. $], stuff[1 .. $]));
See Implementation
Return a slice to the current array that is bounded by start and end. start must be less than or equal to end and end must be less than or equal to length.