Function copyForwards [src]
Copy all of source into dest at position 0.
dest.len must be >= source.len.
If the slices overlap, dest.ptr must be <= src.ptr.
Prototype
pub fn copyForwards(comptime T: type, dest: []T, source: []const T) void
Parameters
T: type
dest: []T
source: []const T
Source
pub fn copyForwards(comptime T: type, dest: []T, source: []const T) void {
for (dest[0..source.len], source) |*d, s| d.* = s;
}