generate method
Evaluates generator
on each position in the array and sets the element
at that position to the result.
Implementation
void generate(T Function(Vec) generator) {
for (var pos in bounds) {
this[pos] = generator(pos);
}
}
Evaluates generator
on each position in the array and sets the element
at that position to the result.
void generate(T Function(Vec) generator) {
for (var pos in bounds) {
this[pos] = generator(pos);
}
}