SList.opAssign

Assigns an input range.

  1. typeof(this) opAssign(R that)
  2. typeof(this) opAssign(R that)
  3. typeof(this) opAssign(R that)
    struct SList(T)
    ref @trusted
    typeof(this)
    opAssign
    (
    R
    )
    (
    scope R that
    )
  4. typeof(this) opAssign(T[R] that)

Parameters

R

Type of the initial range.

that R

Values to initialize the list with.

Return Value

Type: typeof(this)

$(D_KEYWORD this).

Examples

auto l1 = SList!int([5, 4, 9]);
auto l2 = SList!int([9, 4]);
l1 = l2[];
assert(l1 == l2);

Meta