Slicing Operators
Let’s discuss slicing operators in this lesson.
We'll cover the following...
We'll cover the following...
Use of slicing operators
opSlice allows slicing the objects of user-defined types with the [] operator.
In addition to this operator, there are also opSliceUnary, opSliceAssign, and
opSliceOpAssign, but they are discouraged.
D supports multidimensional slicing. You will see a multidimensional example later in the templates chapter. ...