Mercurial > projects > dwt-linux
comparison dwt/dwthelper/utils.d @ 343:96243e3ebcf0
Mozilla.d compiles successfully :)
author | John Reimer <terminal.node@gmail.com> |
---|---|
date | Mon, 27 Oct 2008 06:28:02 -0700 |
parents | c317081df76f |
children | 8ebacc5c07dc |
comparison
equal
deleted
inserted
replaced
342:8d03ae013e53 | 343:96243e3ebcf0 |
---|---|
1222 idx++; | 1222 idx++; |
1223 } | 1223 } |
1224 return res; | 1224 return res; |
1225 } | 1225 } |
1226 | 1226 |
1227 T[] arrayIndexRemove(T)(T[] arr, uint index) { | 1227 T[] arrayIndexRemove(T)(T[] arr, uint n) { |
1228 if (n is 0) | 1228 if (n is 0) |
1229 return arr[1..$]; | 1229 return arr[1..$]; |
1230 if (n > arr.length) | 1230 if (n > arr.length) |
1231 return arr; | 1231 return arr; |
1232 if (n is arr.length-1) | 1232 if (n is arr.length-1) |