Advertisement
Guest User

Untitled

a guest
May 27th, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. fn Range(comptime T : type, comptime start : T, comptime end : T) [end - start]T
  2. {
  3. var result : [end - start]T = undefined;
  4. var i = start;
  5. while(i < end) : (i += 1) {
  6. result[i - start] = i;
  7. }
  8. return result;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement