Assuming I have (what I assume is changed by default) Array [String]
How can one simply remove the nth element in Scala?
There is no simple method.
Want something like (I did it):
def dropEle(n: Int): Array[T]
Selects all elements except the nth one.
n
the subscript of the element to drop from this Array.
Returns an Array consisting of all elements of this Array except the
nth element, or else the complete Array, if this Array has less than
n elements.
Many thanks.
source
share