import std.range;

void main()
{
    int[] a = [1, 2, 3];
    
    a.put(6);
    assert(a == [2, 3]);
    
    a.put([1, 2]);
    assert(a.length == 0);
}

Seems kind of odd.. put is implemented as an append method for some custom 
types, e.g. std.array.appender. But for arrays put just removes Item or 
RangeLength number of elements from the array. What's the use case for this?

Reply via email to