The OpenD Programming Language

sliced

Creates an 1-dimensional slice-shell over an array.

Parameters

array T[]

An array.

Return Value

Type: Slice!(T*)

1-dimensional slice

Examples

Creates a slice from an array.

auto slice = new int[10].sliced;
assert(slice.length == 10);
static assert(is(typeof(slice) == Slice!(int*)));

Meta