ArrayExtensions

final class ArrayExtensions[A](val thisArray: Array[A]) extends AnyVal

Extension methods for Array[A] class

class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def headOnly[B](ifEmpty: => B, fNonEmpty: A => B): B

This method and "fHead" removes the need for headOption in the majority of case. Use fHead when are interested in the tail value

This method and "fHead" removes the need for headOption in the majority of case. Use fHead when are interested in the tail value

def iForeach(f: (A, Int) => Unit, count: Int): Unit

foreach loop with counter

foreach loop with counter

def ifEmpty[B](vEmpty: => B, vNonEmpty: => B): B
def toArraySeq: ArraySeq[A]
def toStr: String
def toStrsCommaFold(fToStr: A => String): String
def toStrsCommaParenth(fToStr: A => String): String
def toStrsFold(seperator: String, f: A => String): String
def toStrsSemiFold(fToStr: A => String): String
def toStrsSemiParenth(fToStr: A => String): String

Concrete fields

val thisArray: Array[A]