Puts e into the range.
$(D_PSYMBOL R) should be an output range for E, i.e. at least one of the following conditions should met:
The method to put e into range is chosen based on the order specified above.
If E is an input range and R is an output range for its elements as well, use $(D_PSYMBOL tanya.algorithm.mutation.copy) instead.
range is advanced after putting an element into it if it is an input range that doesn't define a put-method.
Target range type.
Source element type.
Target range.
Source element.
int[2] actual; auto slice = actual[]; put(slice, 2); assert(actual == [2, 0]);
static struct OpCall { int e; void opCall(int e) { this.e = e; } } OpCall oc; put(oc, 2); assert(oc.e == 2);
$(D_PSYMBOL isOutputRange).
See Implementation
Puts e into the range.
$(D_PSYMBOL R) should be an output range for E, i.e. at least one of the following conditions should met:
The method to put e into range is chosen based on the order specified above.
If E is an input range and R is an output range for its elements as well, use $(D_PSYMBOL tanya.algorithm.mutation.copy) instead.
range is advanced after putting an element into it if it is an input range that doesn't define a put-method.