IArray

iarray.IArray
See theIArray companion object
final class IArray[A] extends AnyVal

Attributes

Companion:
object
Source:
IArray.scala
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def ++(that: IArray[A]): IArray[A]

Attributes

Example:
scala> IArray("a", "b", "c") ++ IArray("x", "y")
res0: IArray[String] = IArray(a, b, c, x, y)
Source:
IArray.scala
def +:(a: A): IArray[A]

Attributes

Example:
scala> 100 +: IArray(1, 2, 3)
res0: IArray[Int] = IArray(100, 1, 2, 3)
Source:
IArray.scala
def :+(a: A): IArray[A]

Attributes

Example:
scala> IArray(1, 2, 3) :+ 100
res0: IArray[Int] = IArray(1, 2, 3, 100)
Source:
IArray.scala
def ===(that: IArray[A])(implicit A: Equal[A]): Boolean

Attributes

Example:
scala> import scalaz.std.anyVal._
scala> IArray(1, 2) === IArray(1, 2)
res0: Boolean = true
Source:
IArray.scala
def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

Attributes

Example:
scala> IArray("x", "y", "z").addString(new StringBuilder("aaa"), "c", "d", "e").toString
res0: String = aaacxdydze
Source:
IArray.scala
def align[B](b: IArray[B]): IArray[A \&/ B]

Attributes

Example:
scala> import scalaz.\&/
scala> IArray(1, 2, 3) align IArray("a", "b", "c", "d", "e")
res0: IArray[Int \&/ String] = IArray(Both(1,a), Both(2,b), Both(3,c), That(d), That(e))
Source:
IArray.scala
def alignWith[B, C](that: IArray[B])(f: A \&/ B => C): IArray[C]

Attributes

Example:
scala>
res0: =
Source:
IArray.scala
def apply(i: Int): A

Attributes

Example:
scala> val x = IArray(10, 20, 30, 40)
scala> x(2)
res0: Int = 30
Source:
IArray.scala
def cobind[B](f: IArray[A] => B): IArray[B]

Attributes

Example:
scala>
res0: =
Source:
IArray.scala

Attributes

Example:
scala>
res0: =
Source:
IArray.scala
def collect[B](f: PartialFunction[A, B]): IArray[B]

Attributes

Example:
scala> IArray(1, 2, 3, 4, 5, 6, 7).collect{ case i if i > 3 => i * 10 }
res0: IArray[Int] = IArray(40, 50, 60, 70)
Source:
IArray.scala
def collectBy[B](implicit B: ClassTag[B]): IArray[B]

Attributes

Example:
scala> IArray[Seq[Int]](Vector(1), List(2), Vector(3), List(4)).collectBy[Vector[Int]]
res0: IArray[Vector[Int]] = IArray(Vector(1), Vector(3))
Source:
IArray.scala
def collectFirst[B](f: PartialFunction[A, B]): Option[B]

Attributes

Example:
scala> IArray(1, 2, 3, 4, 5, 6, 7).collectFirst{ case i if i > 3 => i * 10 }
res0: Option[Int] = Some(40)
Source:
IArray.scala
def collectLast[B](f: PartialFunction[A, B]): Option[B]

Attributes

Example:
scala> IArray(1, 2, 3, 4, 5, 6, 7).collectLast{ case i if i < 3 => i * 10 }
res0: Option[Int] = Some(20)
Source:
IArray.scala
def contains(a: A)(implicit A: Equal[A]): Boolean

Attributes

Example:
scala> import scalaz.std.anyVal._
scala> val a = IArray(1, 2, 3, 4)
scala> a.contains(3)
res0: Boolean = true
scala> a.contains(5)
res1: Boolean = false
Source:
IArray.scala
def count(f: A => Boolean): Int

Attributes

Example:
scala> IArray(1, 2, 3, 4, 5, 6, 7).count(_ % 2 == 1)
res0: Int = 4
Source:
IArray.scala
def dropL(n: Int): IArray[A]

Attributes

Example:
scala> val a = IArray("a", "b", "c", "d", "e")
scala> a.dropL(-1)
res0: IArray[String] = IArray(a, b, c, d, e)
scala> a.dropL(2)
res1: IArray[String] = IArray(c, d, e)
scala> a.dropL(6)
res2: IArray[String] = IArray()
Source:
IArray.scala
def dropR(n: Int): IArray[A]

Attributes

Example:
scala> val a = IArray("a", "b", "c", "d", "e")
scala> a.dropR(-1)
res0: IArray[String] = IArray(a, b, c, d, e)
scala> a.dropR(2)
res1: IArray[String] = IArray(a, b, c)
scala> a.dropR(6)
res2: IArray[String] = IArray()
Source:
IArray.scala
def dropWhileL(f: A => Boolean): IArray[A]

Attributes

Example:
scala> IArray(1, 2, 3, 4, 5, 6, 7).dropWhileL(_ < 4)
res0: IArray[Int] = IArray(4, 5, 6, 7)
Source:
IArray.scala
def dropWhileR(f: A => Boolean): IArray[A]

Attributes

Example:
scala> IArray(1, 2, 3, 4, 5, 6, 7).dropWhileR(_ > 5)
res0: IArray[Int] = IArray(1, 2, 3, 4, 5)
Source:
IArray.scala
def endsWith(that: IArray[A])(implicit A: Equal[A]): Boolean

Attributes

Example:
scala> import scalaz.std.anyVal._
scala> IArray(1, 2, 3, 4, 5) endsWith IArray(3, 4, 5)
res0: Boolean = true
Source:
IArray.scala
def exists(f: A => Boolean): Boolean

Attributes

Example:
scala> val a = IArray(1, 2, 3, 4)
scala> a.exists(_ % 3 == 0)
res0: Boolean = true
scala> a.exists(_ <= 0)
res1: Boolean = false
Source:
IArray.scala
def filter(f: A => Boolean): IArray[A]

Attributes

Example:
scala> IArray(1, 2, 3, 4, 5).filter(_ % 3 != 1)
res0: IArray[Int] = IArray(2, 3, 5)
Source:
IArray.scala
def find(f: A => Boolean): Option[A]

Attributes

Example:
scala> IArray(1, 2, 3, 4, 5).find(_ > 3)
res0: Option[Int] = Some(4)
Source:
IArray.scala
def findRight(f: A => Boolean): Option[A]

Attributes

Example:
scala> IArray(1, 2, 3, 4, 5).findRight(_ < 4)
res0: Option[Int] = Some(3)
Source:
IArray.scala
def firsts[B, C](implicit e: A <:< Product2[B, C]): IArray[B]

Attributes

Example:
scala> IArray(("a", 1), ("b", 2)).firsts
res0: IArray[String] = IArray(a, b)
Source:
IArray.scala
def flatMap[B](f: A => IArray[B]): IArray[B]

Attributes

Example:
scala> IArray("ab", "cde").flatMap(IArray.from(_))
res0: IArray[Char] = IArray(a, b, c, d, e)
Source:
IArray.scala
def flatten[B](implicit A: A <:< IArray[B]): IArray[B]

Attributes

Example:
scala> IArray(IArray(1, 2), IArray(3)).flatten
res0: IArray[Int] = IArray(1, 2, 3)
Source:
IArray.scala
def fold(implicit A: Monoid[A]): A

Attributes

Example:
scala> import scalaz.std.anyVal._
scala> IArray(1, 2, 3, 4, 5).fold
res0: Int = 15
scala> import scalaz.std.string._
scala> IArray("a", "bc", "d").fold
res1: String = abcd
Source:
IArray.scala
def fold1Opt(implicit A: Semigroup[A]): Option[A]

Attributes

Example:
scala> import scalaz.{\/, \/-, -\/}
scala> import scalaz.std.string._, scalaz.std.anyVal._
scala> IArray[Int \/ String](\/-("a"), -\/(1), -\/(2), \/-("b")).fold1Opt
res0: Option[Int \/ String] = Some(-\/(3))
scala> IArray.empty[Int \/ String].fold1Opt
res1: Option[Int \/ String] = None
Source:
IArray.scala
def foldMap[B](f: A => B)(implicit B: Monoid[B]): B

Attributes

Example:
scala> import scalaz.std.anyVal._
scala> IArray(123, 23, 9, 54).foldMap(_.toString.size)
res0: Int = 8
Source:
IArray.scala
def foldMap1Opt[B](f: A => B)(implicit B: Semigroup[B]): Option[B]

Attributes

Example:
scala>
res0: =
Source:
IArray.scala
def foldMapL1[B](z: A => B)(f: (B, A) => B): Option[B]

Attributes

Example:
scala>
res0: =
Source:
IArray.scala
def foldMapR1Opt[B](z: A => B)(f: (A, B) => B): Option[B]

Attributes

Example:
scala>
res0: =
Source:
IArray.scala
def foldl[B](z: B)(f: (B, A) => B): B

Attributes

Example:
scala>
res0: =
Source:
IArray.scala
def foldl1(f: (A, A) => A): Option[A]

Attributes

Example:
scala>
res0: =
Source:
IArray.scala
def foldr[B](z: B)(f: (A, B) => B): B

Attributes

Example:
scala>
res0: =
Source:
IArray.scala
def foldr1(f: (A, A) => A): Option[A]

Attributes

Example:
scala>
res0: =
Source:
IArray.scala
def forall(f: A => Boolean): Boolean

Attributes

Example:
scala> val a = IArray(1, 2, 3, 4)
scala> a.forall(_ <= 4)
res0: Boolean = true
scala> a.forall(_ % 4 < 3)
res1: Boolean = false
Source:
IArray.scala
def foreach[U](f: A => U): Unit

Attributes

Example:
scala>
res0: =
Source:
IArray.scala
def groupBy1[B](f: A => B)(implicit O: Order[B]): B ==>> IArray1[A]

Attributes

Example:
scala> import scalaz.std.anyVal._
scala> IArray(1, 2, 3, 4, 5).groupBy1(_ % 3).toList.sortBy(_._1)
res0: List[(Int, IArray1[Int])] = List((0,IArray1(3)), (1,IArray1(1, 4)), (2,IArray1(2, 5)))
Source:
IArray.scala
def headMaybe: Maybe[A]

Attributes

Example:
scala> IArray(10, 20, 30).headMaybe
res0: scalaz.Maybe[Int] = Just(10)
Source:
IArray.scala
def headOption: Option[A]

Attributes

Example:
scala> IArray(10, 20, 30).headOption
res0: Option[Int] = Some(10)
Source:
IArray.scala
def indexOfL(a: A)(implicit E: Equal[A]): Option[Int]

Attributes

Example:
scala> import scalaz.std.anyVal._
scala> IArray(-1, 0, 1, 2, -1, 0, 1, 2).indexOfL(2)
res0: Option[Int] = Some(3)
scala> IArray(1, 2, 3, 1, 2, 3).indexOfL(5)
res1: Option[Int] = None
Source:
IArray.scala
def indexOfR(a: A)(implicit E: Equal[A]): Option[Int]

Attributes

Example:
scala> import scalaz.std.anyVal._
scala> IArray(1, 2, 3, 1, 2, 3).indexOfR(1)
res0: Option[Int] = Some(3)
scala> IArray(1, 2, 3, 1, 2, 3).indexOfR(5)
res1: Option[Int] = None
Source:
IArray.scala
def initMaybe: Maybe[IArray[A]]

Attributes

Example:
scala> IArray(10, 20, 30).initMaybe
res0: scalaz.Maybe[IArray[Int]] = Just(IArray(10, 20))
Source:
IArray.scala
def initOption: Option[IArray[A]]

Attributes

Example:
scala> IArray(10, 20, 30).initOption
res0: Option[IArray[Int]] = Some(IArray(10, 20))
Source:
IArray.scala
def intercalate(a: A)(implicit A: Monoid[A]): A

Attributes

Example:
scala> import scalaz.std.list._
scala> IArray(List("a"), List("b", "c"), Nil, List("d")).intercalate(List("z"))
res0: List[String] = List(a, z, b, c, z, z, d)
Source:
IArray.scala
def intercalate1Opt(a: A)(implicit A: Semigroup[A]): Option[A]

Attributes

Example:
scala> import scalaz.std.list._
scala> IArray(List("a"), List("b", "c"), Nil, List("d")).intercalate1Opt(List("z"))
res0: Option[List[String]] = Some(List(a, z, b, c, z, z, d))
scala> IArray.empty[List[Int]].intercalate1Opt(List(7))
res1: Option[List[Int]] = None
Source:
IArray.scala
def interleave(that: IArray[A]): IArray[A]

Attributes

Source:
IArray.scala
def intersperse(a: A): IArray[A]

Attributes

Example:
scala> IArray(1, 2, 3, 4).intersperse(0)
res0: IArray[Int] = IArray(1, 0, 2, 0, 3, 0, 4)
Source:
IArray.scala
def isEmpty: Boolean

Attributes

Example:
scala> IArray(1, 2).isEmpty
res0: Boolean = false
scala> IArray[Int](1, 2).dropL(10).isEmpty
res1: Boolean = true
Source:
IArray.scala
def lastMaybe: Maybe[A]

Attributes

Example:
scala> IArray(10, 20, 30).lastMaybe
res0: scalaz.Maybe[Int] = Just(30)
Source:
IArray.scala
def lastOption: Option[A]

Attributes

Example:
scala> IArray(10, 20, 30).lastOption
res0: Option[Int] = Some(30)
Source:
IArray.scala
def length: Int

Attributes

Example:
scala> IArray("a", "b").length
res0: Int = 2
Source:
IArray.scala
def map[B](f: A => B): IArray[B]

Attributes

Example:
scala> IArray(1, 2, 3).map(_ * 10)
res0: IArray[Int] = IArray(10, 20, 30)
Source:
IArray.scala
def mapAccumL[S, B](z: S)(f: (S, A) => (S, B)): (S, IArray[B])

Attributes

Example:
scala>
res0: =
Source:
IArray.scala
def mapAccumR[S, B](z: S)(f: (S, A) => (S, B)): (S, IArray[B])

Attributes

Example:
scala>
res0: =
Source:
IArray.scala
def max(implicit O: Order[A]): Option[A]

Attributes

Example:
scala> import scalaz.std.anyVal._
scala> IArray(20, 30, 10).max
res0: Option[Int] = Some(30)
scala> IArray[Int]().max
res1: Option[Int] = None
Source:
IArray.scala
def maxBy[B](f: A => B)(implicit O: Order[B]): Option[A]

Attributes

Example:
scala> import scalaz.std.anyVal._
scala> IArray("aa", "bbb", "c").maxBy(_.size)
res0: Option[String] = Some(bbb)
scala> IArray[String]().maxBy(_.size)
res1: Option[String] = None
Source:
IArray.scala
def maxOf[B](f: A => B)(implicit O: Order[B]): Option[B]

Attributes

Example:
scala> import scalaz.std.anyVal._
scala> IArray(20, 30, 10).maxOf(- _)
res0: Option[Int] = Some(-10)
scala> IArray[Int]().maxOf(- _)
res1: Option[Int] = None
Source:
IArray.scala
def min(implicit O: Order[A]): Option[A]

Attributes

Example:
scala> import scalaz.std.anyVal._
scala> IArray(20, 30, 10).min
res0: Option[Int] = Some(10)
scala> IArray[Int]().min
res1: Option[Int] = None
Source:
IArray.scala
def minBy[B](f: A => B)(implicit O: Order[B]): Option[A]

Attributes

Example:
scala> import scalaz.std.anyVal._
scala> IArray("aa", "bbb", "c").minBy(_.size)
res0: Option[String] = Some(c)
scala> IArray[String]().minBy(_.size)
res1: Option[String] = None
Source:
IArray.scala
def minOf[B](f: A => B)(implicit O: Order[B]): Option[B]

Attributes

Example:
scala> import scalaz.std.anyVal._
scala> IArray(20, 30, 10).minOf(- _)
res0: Option[Int] = Some(-30)
scala> IArray[Int]().minOf(- _)
res1: Option[Int] = None
Source:
IArray.scala
def mkString(sep: String): String

Attributes

Example:
scala> IArray("a", "b", "c").mkString("_")
res0: String = a_b_c
Source:
IArray.scala
def mkString(start: String, sep: String, end: String): String

Attributes

Example:
scala> IArray(1, 2, 3).mkString("[", ",", "]")
res0: String = [1,2,3]
Source:
IArray.scala
def nonEmpty: Boolean

Attributes

Example:
scala> IArray(1, 2).nonEmpty
res0: Boolean = true
scala> IArray[Int](1, 2).dropL(10).nonEmpty
res1: Boolean = false
Source:
IArray.scala
def oneAnd: Option[OneAnd[IArray, A]]

Attributes

Example:
scala> IArray(1, 2, 3).oneAnd
res0: Option[scalaz.OneAnd[IArray, Int]] = Some(OneAnd(1,IArray(2, 3)))
Source:
IArray.scala
def partition(f: A => Boolean): (IArray[A], IArray[A])

Attributes

Example:
scala> IArray(2, 8, 11, -2, 5, 6).partition(_ % 2 == 0)
res0: (IArray[Int], IArray[Int]) = (IArray(2, 8, -2, 6),IArray(11, 5))
Source:
IArray.scala
def reverse: IArray[A]

Attributes

Example:
scala> IArray(1, 2, 3).reverse
res0: IArray[Int] = IArray(3, 2, 1)
Source:
IArray.scala
def reverseArray(implicit A: ClassTag[A]): Array[A]

Attributes

Example:
scala> IArray(1, 2, 3).reverseArray
res0: Array[Int] = Array(3, 2, 1)
Source:
IArray.scala
def reverseIList: IList[A]

Attributes

Example:
scala> IArray(1, 2, 3).reverseIList
res0: scalaz.IList[Int] = [3,2,1]
Source:
IArray.scala
def reverseList: List[A]

Attributes

Example:
scala> IArray(1, 2, 3).reverseList
res0: List[Int] = List(3, 2, 1)
Source:
IArray.scala
def reverseMap[B](f: A => B): IArray[B]

Attributes

Example:
scala> IArray(1, 2, 3, 4).reverseMap(_ * 3)
res0: IArray[Int] = IArray(12, 9, 6, 3)
Source:
IArray.scala
def reverse_:::(prefix: IArray[A]): IArray[A]

Attributes

Example:
scala> IArray(1, 2, 3) reverse_::: IArray(10, 11, 12)
res0: IArray[Int] = IArray(3, 2, 1, 10, 11, 12)
Source:
IArray.scala
def scanLeft[B](z: B)(f: (B, A) => B): IArray[B]

Attributes

Example:
scala>
res0: =
Source:
IArray.scala
def scanLeft1(f: (A, A) => A): IArray[A]

Attributes

Example:
scala>
res0: =
Source:
IArray.scala
def scanRight[B](z: B)(f: (A, B) => B): IArray[B]

Attributes

Example:
scala>
res0: =
Source:
IArray.scala
def scanRight1(f: (A, A) => A): IArray[A]

Attributes

Example:
scala>
res0: =
Source:
IArray.scala
def seconds[B, C](implicit e: A <:< Product2[B, C]): IArray[C]

Attributes

Example:
scala> IArray(("a", 10), ("b", 20)).seconds
res0: IArray[Int] = IArray(10, 20)
Source:
IArray.scala
def size: Int

Attributes

Source:
IArray.scala
def slice(from: Int, until: Int): IArray[A]

Attributes

Example:
scala> val array = IArray("a", "b", "c", "d", "e", "f")
scala> array.slice(1, 3)
res0: IArray[String] = IArray(b, c)
scala> array.slice(4, 17)
res1: IArray[String] = IArray(e, f)
Source:
IArray.scala
def sortBy[B](f: A => B)(implicit O: Order[B]): IArray[A]

Attributes

Example:
scala> import scalaz.std.anyVal._
scala> IArray("aaaa", "bb", "ccccc", "d").sortBy(_.length)
res0: IArray[String] = IArray(d, bb, aaaa, ccccc)
Source:
IArray.scala
def sortWith(f: (A, A) => Boolean): IArray[A]

Attributes

Example:
scala> IArray(2, 7, 4, 6, 1).sortWith(_ > _)
res0: IArray[Int] = IArray(7, 6, 4, 2, 1)
Source:
IArray.scala
def sorted(implicit O: Order[A]): IArray[A]

Attributes

Example:
scala> import scalaz.std.string._
scala> IArray("y", "k", "f", "i", "t", "s").sorted
res0: IArray[String] = IArray(f, i, k, s, t, y)
Source:
IArray.scala
def span(f: A => Boolean): (IArray[A], IArray[A])

Attributes

Example:
scala> IArray(2, 8, 11, -2, 5, 6).span(_ % 2 == 0)
res0: (IArray[Int], IArray[Int]) = (IArray(2, 8),IArray(11, -2, 5, 6))
Source:
IArray.scala
def splitAt(n: Int): (IArray[A], IArray[A])

Attributes

Example:
scala> IArray(10, 20, 30, 40, 50, 60, 70).splitAt(5)
res0: (IArray[Int], IArray[Int]) = (IArray(10, 20, 30, 40, 50),IArray(60, 70))
Source:
IArray.scala
def startsWith(that: IArray[A], offset: Int)(implicit A: Equal[A]): Boolean

Attributes

Example:
scala> import scalaz.std.anyVal._
scala> IArray(1, 2, 3, 4, 5) startsWith IArray(1, 2)
res0: Boolean = true
Source:
IArray.scala
def sum(implicit A: Numeric[A]): A

Attributes

Example:
scala> IArray(10, 20, 30).sum
res0: Int = 60
Source:
IArray.scala
def tailMaybe: Maybe[IArray[A]]

Attributes

Example:
scala> IArray(10, 20, 30).tailMaybe
res0: scalaz.Maybe[IArray[Int]] = Just(IArray(20, 30))
Source:
IArray.scala
def tailOption: Option[IArray[A]]

Attributes

Example:
scala> IArray(10, 20, 30).tailOption
res0: Option[IArray[Int]] = Some(IArray(20, 30))
Source:
IArray.scala
def takeL(n: Int): IArray[A]

Attributes

Example:
scala> IArray("a", "b", "c", "d", "e", "f").takeL(2)
res0: IArray[String] = IArray(a, b)
Source:
IArray.scala
def takeR(n: Int): IArray[A]

Attributes

Example:
scala> IArray("a", "b", "c", "d", "e", "f").takeR(4)
res0: IArray[String] = IArray(c, d, e, f)
Source:
IArray.scala
def takeWhileL(f: A => Boolean): IArray[A]

Attributes

Example:
scala> IArray(1, 2, 3, 4, 5, 6, 7).takeWhileL(_ < 5)
res0: IArray[Int] = IArray(1, 2, 3, 4)
Source:
IArray.scala
def takeWhileR(f: A => Boolean): IArray[A]

Attributes

Example:
scala> IArray(1, 2, 3, 4, 5, 6, 7).takeWhileR(_ > 2)
res0: IArray[Int] = IArray(3, 4, 5, 6, 7)
Source:
IArray.scala
def toArray(implicit A: ClassTag[A]): Array[A]

Attributes

Example:
scala> IArray(1, 2, 3).toArray
res0: Array[Int] = Array(1, 2, 3)
Source:
IArray.scala
def toIArray1: Option[IArray1[A]]

Attributes

Example:
scala> IArray(1, 2, 3).toIArray1
res0: Option[IArray1[Int]] = Some(IArray1(1, 2, 3))
scala> IArray[Int]().toIArray1
res1: Option[IArray1[Int]] = None
Source:
IArray.scala
def toIList: IList[A]

Attributes

Example:
scala> IArray(1, 2, 3).toIList
res0: scalaz.IList[Int] = [1,2,3]
Source:
IArray.scala
def toIterator: Iterator[A]

Attributes

Example:
scala> IArray(1, 2, 3, 4, 5).toIterator.filter(_ % 2 == 0).toList
res0: List[Int] = List(2, 4)
Source:
IArray.scala
def toList: List[A]

Attributes

Example:
scala> IArray(1, 2, 3).toList
res0: List[Int] = List(1, 2, 3)
Source:
IArray.scala
def toNel: Option[NonEmptyList[A]]

Attributes

Example:
scala> import scalaz.NonEmptyList
scala> IArray(1, 2, 3).toNel
res0: Option[NonEmptyList[Int]] = Some(NonEmpty[1,2,3])
scala> IArray[Int]().toNel
res1: Option[NonEmptyList[Int]] = None
Source:
IArray.scala
def toStream: Stream[A]

Attributes

Source:
IArray.scala
override def toString: String

Attributes

Example:
scala> IArray(1, 2, 3).toString
res0: String = IArray(1, 2, 3)
Definition Classes
Any
Source:
IArray.scala
def toVector: Vector[A]

Attributes

Source:
IArray.scala
def unzip[B, C](implicit e: A <:< Product2[B, C]): (IArray[B], IArray[C])

alias of unzip2

alias of unzip2

Attributes

Source:
IArray.scala
def unzip2[B, C](implicit e: A <:< Product2[B, C]): (IArray[B], IArray[C])

Attributes

Example:
scala> IArray(("a", 1), ("b", 2)).unzip2
res0: (IArray[String], IArray[Int]) = (IArray(a, b),IArray(1, 2))
Source:
IArray.scala
def unzip3[B, C, D](implicit e: A <:< Product3[B, C, D]): (IArray[B], IArray[C], IArray[D])

Attributes

Example:
scala> IArray(("a", 1, true), ("b", 2, false)).unzip3
res0: (IArray[String], IArray[Int], IArray[Boolean]) = (IArray(a, b),IArray(1, 2),IArray(true, false))
Source:
IArray.scala
def unzip4[B, C, D, E](implicit e: A <:< Product4[B, C, D, E]): (IArray[B], IArray[C], IArray[D], IArray[E])

Attributes

Example:
scala> IArray(("a", 1, true, List(3)), ("b", 2, false, List(4))).unzip4
res0: (IArray[String], IArray[Int], IArray[Boolean], IArray[List[Int]]) = (IArray(a, b),IArray(1, 2),IArray(true, false),IArray(List(3), List(4)))
Source:
IArray.scala
def unzip5[B, C, D, E, F](implicit e: A <:< Product5[B, C, D, E, F]): (IArray[B], IArray[C], IArray[D], IArray[E], IArray[F])

Attributes

Example:
scala> IArray(("a", 1, true, List(3), 'f'), ("b", 2, false, List(4), 'g')).unzip5
res0: (IArray[String], IArray[Int], IArray[Boolean], IArray[List[Int]], IArray[Char]) = (IArray(a, b),IArray(1, 2),IArray(true, false),IArray(List(3), List(4)),IArray(f, g))
Source:
IArray.scala
def updated(index: Int, elem: A): IArray[A]

Attributes

Example:
scala> IArray("a", "b", "c", "d").updated(2, "z")
res0: IArray[String] = IArray(a, b, z, d)
Source:
IArray.scala
def widen[B](implicit ev: A <:< B): IArray[B]

Attributes

Example:
scala> IArray(List(1)).widen[Seq[Int]]
res0: IArray[Seq[Int]] = IArray(List(1))
Source:
IArray.scala
def withFilter(f: A => Boolean): WithFilter[A]

Attributes

Example:
scala> IArray(1, 2, 3, 4, 5).withFilter(_ % 3 != 1).map(_ * 10)
res0: IArray[Int] = IArray(20, 30, 50)
Source:
IArray.scala

Attributes

Example:
scala>
res0: =
Source:
IArray.scala
def zip[B](that: IArray[B]): IArray[(A, B)]

Attributes

Example:
scala> IArray("a", "b") zip IArray(1, 2, 3, 4)
res0: IArray[(String, Int)] = IArray((a,1), (b,2))
Source:
IArray.scala
def zipAll[B](that: IArray[B], a: A, b: B): IArray[(A, B)]

Attributes

Example:
scala> IArray("a", "b", "c", "d").zipAll(IArray(1, 2), "z", 0)
res0: IArray[(String, Int)] = IArray((a,1), (b,2), (c,0), (d,0))
Source:
IArray.scala
def zipWith[B, C](that: IArray[B])(f: (A, B) => C): IArray[C]

Attributes

Example:
scala> IArray("a", "b", "c", "d").zipWith(IArray("x", "y", "z"))(_ + _)
res0: IArray[String] = IArray(ax, by, cz)
Source:
IArray.scala
def zipWithIndex: IArray[(A, Int)]

Attributes

Example:
scala> IArray("a", "b", "c").zipWithIndex
res0: IArray[(String, Int)] = IArray((a,0), (b,1), (c,2))
Source:
IArray.scala
def zipperEnd: Option[Zipper[A]]

Attributes

Example:
scala> IArray(1, 2, 3).zipperEnd.map(_.modify(_ + 10).toStream.toList)
res0: Option[List[Int]] = Some(List(1, 2, 13))
Source:
IArray.scala