This filters the sequence of A to members of subtype B and returns an Array of subtype B.
This filters the sequence of A to members of subtype B and returns an Array of subtype B.
equivalent to: seq.filter( _.isInstanceOf[B] ).map( _.asInstanceOf[B] )
This returns an array with the new size as follows:
This returns an array with the new size as follows:
newSize == size ... returns same array (i.e. does nothing) newSize > size ... returns a copy of this array with trailing values null-padded newSize < size ... returns a copy of this array with the size truncated to the newSize