Extensions

narr.native.`package`.Extensions
object Extensions

Attributes

Source
package.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Extensions.type

Members list

Extensions

Extensions

extension (a: Array[String])
inline def sort(): Array[String]

Attributes

Source
package.scala
inline def sort(ot: Ordering[String]): Array[String]

Attributes

Source
package.scala
extension [T <: AnyRef](a: Array[T])
inline def sort(ot: Ordering[T]): Array[T]

Attributes

Source
package.scala
extension [T](a: Array[T])
def copy: Array[T]

Attributes

Source
package.scala
inline def copyToNArray[B >: T](xs: Array[B]): Int

Copy elements of this array to another array. Fills the given array xs starting at index 0. Copying will stop once either all the elements of this array have been copied, or the end of the array is reached.

Copy elements of this array to another array. Fills the given array xs starting at index 0. Copying will stop once either all the elements of this array have been copied, or the end of the array is reached.

Type parameters

B

the type of the elements of the array.

Value parameters

xs

the array to fill.

Attributes

Source
package.scala
inline def copyToNArray[B >: T](xs: Array[B], start: Int): Int

Copy elements of this array to another array. Fills the given array xs starting at index start. Copying will stop once either all the elements of this array have been copied, or the end of the array is reached.

Copy elements of this array to another array. Fills the given array xs starting at index start. Copying will stop once either all the elements of this array have been copied, or the end of the array is reached.

Type parameters

B

the type of the elements of the array.

Value parameters

start

the starting index within the destination array.

xs

the array to fill.

Attributes

Source
package.scala
inline def copyToNArray[B >: T](xs: Array[B], start: Int, len: Int): Int

Copy elements of this array to another array. Fills the given array xs starting at index start with at most len values. Copying will stop once either all the elements of this array have been copied, or the end of the array is reached, or len elements have been copied.

Copy elements of this array to another array. Fills the given array xs starting at index start with at most len values. Copying will stop once either all the elements of this array have been copied, or the end of the array is reached, or len elements have been copied.

Type parameters

B

the type of the elements of the array.

Value parameters

len

the maximal number of elements to copy.

start

the starting index within the destination array.

xs

the array to fill.

Attributes

Source
package.scala
def endsWithIterable[B >: T](that: Iterable[B]): Boolean

Attributes

Source
package.scala
def startsWithIterable[B >: T](that: IterableOnce[B], offset: Int): Boolean

Attributes

Source
package.scala
def toNArray[B >: T : ClassTag]: Array[B]

Create a copy of this array with the specified element type.

Create a copy of this array with the specified element type.

Attributes

Source
package.scala
extension (ba: Array[Boolean])
inline def sort(): Array[Boolean]

Attributes

Source
package.scala
inline def sort(ot: Ordering[Boolean]): Array[Boolean]

Attributes

Source
package.scala
extension (ba: ByteArray)
inline def sort(): ByteArray

Attributes

Source
package.scala
inline def sort(ot: Ordering[Byte]): ByteArray

Attributes

Source
package.scala
extension (ca: Array[Char])
inline def sort(): Array[Char]

Attributes

Source
package.scala
inline def sort(ot: Ordering[Char]): Array[Char]

Attributes

Source
package.scala
extension (da: DoubleArray)
inline def sort(): DoubleArray

Attributes

Source
package.scala
inline def sort(ot: Ordering[Double]): DoubleArray

Attributes

Source
package.scala
extension (fa: FloatArray)
inline def sort(): FloatArray

Attributes

Source
package.scala
inline def sort(ot: Ordering[Float]): FloatArray

Attributes

Source
package.scala
extension (ia: IntArray)
inline def sort(): IntArray

Attributes

Source
package.scala
inline def sort(ot: Ordering[Int]): IntArray

Attributes

Source
package.scala
extension (la: Array[Long])
inline def sort(): Array[Long]

Attributes

Source
package.scala
inline def sort(ot: Ordering[Long]): Array[Long]

Attributes

Source
package.scala
extension (sa: ShortArray)
inline def sort(): ShortArray

Attributes

Source
package.scala
inline def sort(ot: Ordering[Short]): ShortArray

Attributes

Source
package.scala
extension (ua: Array[Unit])
inline def sort(): Array[Unit]

Attributes

Source
package.scala
inline def sort(ot: Ordering[Unit]): Array[Unit]

Attributes

Source
package.scala

Exports

Defined exports

final val ArrayOps: ArrayOps
Exported from collection

Attributes

Source
package.scala
final type ArrayOps = ArrayOps
Exported from collection

Attributes

Source
package.scala