Is there a way to initialise an array of integers (or possibly any array) to a constant value other than zero (or null) which are the defaults, without a for loop?
Ideally I am looking for a function like "ones" in matlab, which is not only neater but also more efficient.
long[]can be faster using a loop than usingSystem.arrayCopy