CharArray

zio.Chunk.CharArray
final case class CharArray(array: Array[Char], offset: Int, length: Int) extends ChunkIterator[Char]

Attributes

Graph
Supertypes
trait Product
class Chunk[Char]
trait Serializable
trait ChunkLike[Char]
trait IndexedSeq[Char]
trait IndexedSeq[Char]
trait Seq[Char]
trait SeqOps[Char, Chunk, Chunk[Char]]
trait Seq[Char]
trait Equals
trait SeqOps[Char, Chunk, Chunk[Char]]
trait Int => Char
trait Iterable[Char]
trait Iterable[Char]
class Object
trait Matchable
class Any
Show all
Self type

Members list

Value members

Concrete methods

def apply(index: Int): Char
override def char(index: Int)(implicit ev: Char <:< Char): Char

Get the element at the specified index.

Get the element at the specified index.

Attributes

Definition Classes
override def filter(f: Char => Boolean): Chunk[Char]

Returns a filtered subset of this chunk.

Returns a filtered subset of this chunk.

Attributes

Definition Classes
def hasNextAt(index: Int): Boolean

Checks if the chunk iterator has another element.

Checks if the chunk iterator has another element.

Attributes

def nextAt(index: Int): Char

Gets the next element from the chunk iterator.

Gets the next element from the chunk iterator.

Attributes

def sliceIterator(offset: Int, length: Int): ChunkIterator[Char]

Returns a new iterator that is a slice of this iterator.

Returns a new iterator that is a slice of this iterator.

Attributes

override def takeWhile(f: Char => Boolean): Chunk[Char]

Takes all elements so long as the predicate returns true.

Takes all elements so long as the predicate returns true.

Attributes

Definition Classes

Inherited methods

def &(that: Chunk[Boolean])(implicit ev: Char <:< Boolean): BitChunkByte

Returns the bitwise AND of this chunk and the specified chunk.

Returns the bitwise AND of this chunk and the specified chunk.

Attributes

Inherited from:
Chunk
final def ++[A1 >: Char](that: ChunkIterator[A1]): ChunkIterator[A1]

Concatenates this chunk iterator with the specified chunk iterator.

Concatenates this chunk iterator with the specified chunk iterator.

Attributes

Inherited from:
ChunkIterator
final def ++[A1 >: Char](that: NonEmptyChunk[A1]): NonEmptyChunk[A1]

Returns the concatenation of this chunk with the specified chunk.

Returns the concatenation of this chunk with the specified chunk.

Attributes

Inherited from:
Chunk
final def ++[A1 >: Char](that: Chunk[A1]): Chunk[A1]

Returns the concatenation of this chunk with the specified chunk.

Returns the concatenation of this chunk with the specified chunk.

Attributes

Inherited from:
Chunk
final def ++[B >: Char](suffix: IterableOnce[B]): Chunk[B]

Attributes

Inherited from:
IterableOps
final override def ++:[B >: Char](prefix: IterableOnce[B]): Chunk[B]

Attributes

Definition Classes
Inherited from:
SeqOps
final def +:[B >: Char](elem: B): Chunk[B]

Attributes

Inherited from:
SeqOps
final def :+[B >: Char](elem: B): Chunk[B]

Attributes

Inherited from:
SeqOps
final def :++[B >: Char](suffix: IterableOnce[B]): Chunk[B]

Attributes

Inherited from:
SeqOps
def ^(that: Chunk[Boolean])(implicit ev: Char <:< Boolean): BitChunkByte

Returns the bitwise XOR of this chunk and the specified chunk.

Returns the bitwise XOR of this chunk and the specified chunk.

Attributes

Inherited from:
Chunk
final def addString(b: StringBuilder): b.type

Attributes

Inherited from:
IterableOnceOps
final def addString(b: StringBuilder, sep: String): b.type

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
PartialFunction
override def andThen[C](k: Char => C): PartialFunction[Int, C]

Attributes

Definition Classes
Inherited from:
PartialFunction
final override def appended[A1 >: Char](a1: A1): Chunk[A1]

Attributes

Definition Classes
Inherited from:
ChunkLike
override def appendedAll[B >: Char](suffix: IterableOnce[B]): Chunk[B]

Attributes

Definition Classes
Inherited from:
StrictOptimizedSeqOps
def applyOrElse[A1 <: Int, B1 >: Char](x: A1, default: A1 => B1): B1

Attributes

Inherited from:
PartialFunction
def asBase64String(implicit ev: IsText[Char]): String

Crates a base64 encoded string based on the chunk's data.

Crates a base64 encoded string based on the chunk's data.

Attributes

Inherited from:
Chunk
final def asBitsByte(implicit ev: Char <:< Byte): Chunk[Boolean]

Converts a chunk of bytes to a chunk of bits.

Converts a chunk of bytes to a chunk of bits.

Attributes

Inherited from:
Chunk
final def asBitsInt(endianness: Endianness)(implicit ev: Char <:< Int): Chunk[Boolean]

Converts a chunk of ints to a chunk of bits.

Converts a chunk of ints to a chunk of bits.

Attributes

Inherited from:
Chunk
final def asBitsLong(endianness: Endianness)(implicit ev: Char <:< Long): Chunk[Boolean]

Converts a chunk of longs to a chunk of bits.

Converts a chunk of longs to a chunk of bits.

Attributes

Inherited from:
Chunk
final def asString(charset: Charset)(implicit ev: Char <:< Byte): String

Crates a new String based on this chunk of bytes and using the given charset.

Crates a new String based on this chunk of bytes and using the given charset.

Attributes

Inherited from:
Chunk
final def asString(implicit ev: IsText[Char]): String

Crates a new String based on this chunks data.

Crates a new String based on this chunks data.

Attributes

Inherited from:
Chunk
def boolean(index: Int)(implicit ev: Char <:< Boolean): Boolean

Get the element at the specified index.

Get the element at the specified index.

Attributes

Inherited from:
Chunk
def byte(index: Int)(implicit ev: Char <:< Byte): Byte

Get the element at the specified index.

Get the element at the specified index.

Attributes

Inherited from:
Chunk
override def canEqual(that: Any): Boolean

Attributes

Definition Classes
Inherited from:
IndexedSeq
override def collect[B](pf: PartialFunction[Char, B]): Chunk[B]

Returns a filtered, mapped subset of the elements of this Chunk.

Returns a filtered, mapped subset of the elements of this Chunk.

Attributes

Definition Classes
Inherited from:
ChunkLike
override protected def collectChunk[B](pf: PartialFunction[Char, B]): Chunk[B]

Returns a filtered, mapped subset of the elements of this chunk.

Returns a filtered, mapped subset of the elements of this chunk.

Attributes

Definition Classes
Arr -> Chunk
Inherited from:
Arr (hidden)

Attributes

Inherited from:
IterableOnceOps
override def collectWhile[B](pf: PartialFunction[Char, B]): Chunk[B]

Transforms all elements of the chunk for as long as the specified partial function is defined.

Transforms all elements of the chunk for as long as the specified partial function is defined.

Attributes

Definition Classes
Arr -> Chunk
Inherited from:
Arr (hidden)
override def collectWhileZIO[R, E, B](pf: PartialFunction[Char, ZIO[R, E, B]])(implicit trace: Trace): ZIO[R, E, Chunk[B]]

Attributes

Definition Classes
Arr -> Chunk
Inherited from:
Arr (hidden)
override def collectZIO[R, E, B](pf: PartialFunction[Char, ZIO[R, E, B]])(implicit trace: Trace): ZIO[R, E, Chunk[B]]

Returns a filtered, mapped subset of the elements of this chunk based on a .

Returns a filtered, mapped subset of the elements of this chunk based on a .

Attributes

Definition Classes
Arr -> Chunk
Inherited from:
Arr (hidden)

Attributes

Inherited from:
SeqOps

Attributes

Inherited from:
PartialFunction
def compose[A](g: A => Int): A => Char

Attributes

Inherited from:
Function1
final override def concat[B >: Char](suffix: IterableOnce[B]): Chunk[B]

Attributes

Definition Classes
Inherited from:
SeqOps
def contains[A1 >: Char](elem: A1): Boolean

Attributes

Inherited from:
SeqOps

Attributes

Inherited from:
SeqOps
override def copyToArray[B >: Char](dest: Array[B], destPos: Int, length: Int): Int

Attributes

Definition Classes
Inherited from:
ChunkLike
def copyToArray[B >: Char](xs: Array[B], start: Int): Int

Attributes

Inherited from:
IterableOnceOps
def copyToArray[B >: Char](xs: Array[B]): Int

Attributes

Inherited from:
IterableOnceOps
final def corresponds[B](that: Chunk[B])(f: (Char, B) => Boolean): Boolean

Determines whether this chunk and the specified chunk have the same length and every pair of corresponding elements of this chunk and the specified chunk satisfy the specified predicate.

Determines whether this chunk and the specified chunk have the same length and every pair of corresponding elements of this chunk and the specified chunk satisfy the specified predicate.

Attributes

Inherited from:
Chunk

Attributes

Inherited from:
IterableOnceOps
def corresponds[B](that: Seq[B])(p: (Char, B) => Boolean): Boolean

Attributes

Inherited from:
SeqOps
def count(p: Char => Boolean): Int

Attributes

Inherited from:
IterableOnceOps
def dedupe: Chunk[Char]

Deduplicates adjacent elements that are identical.

Deduplicates adjacent elements that are identical.

Attributes

Inherited from:
Chunk
override def diff[B >: Char](that: Seq[B]): Chunk[Char]

Attributes

Definition Classes
Inherited from:
StrictOptimizedSeqOps

Attributes

Inherited from:
SeqOps
override def distinctBy[B](f: Char => B): Chunk[Char]

Attributes

Definition Classes
Inherited from:
StrictOptimizedSeqOps
def double(index: Int)(implicit ev: Char <:< Double): Double

Get the element at the specified index.

Get the element at the specified index.

Attributes

Inherited from:
Chunk
override def drop(n: Int): Chunk[Char]

Drops the first n elements of the chunk.

Drops the first n elements of the chunk.

Attributes

Definition Classes
Inherited from:
Chunk
override def dropRight(n: Int): Chunk[Char]

Drops the last n elements of the chunk.

Drops the last n elements of the chunk.

Attributes

Definition Classes
Inherited from:
Chunk

Drops all elements until the predicate returns true.

Drops all elements until the predicate returns true.

Attributes

Inherited from:
Chunk
def dropUntilZIO[R, E](p: Char => ZIO[R, E, Boolean])(implicit trace: Trace): ZIO[R, E, Chunk[Char]]

Drops all elements until the effectful predicate returns true.

Drops all elements until the effectful predicate returns true.

Attributes

Inherited from:
Chunk
override def dropWhile(f: Char => Boolean): Chunk[Char]

Drops all elements so long as the predicate returns true.

Drops all elements so long as the predicate returns true.

Attributes

Definition Classes
Inherited from:
Arr (hidden)
def dropWhileZIO[R, E](p: Char => ZIO[R, E, Boolean])(implicit trace: Trace): ZIO[R, E, Chunk[Char]]

Drops all elements so long as the effectful predicate returns true.

Drops all elements so long as the effectful predicate returns true.

Attributes

Inherited from:
Chunk

Attributes

Inherited from:
PartialFunction
override def empty: Chunk[Char]

Attributes

Definition Classes
Inherited from:
IterableFactoryDefaults

Attributes

Inherited from:
SeqOps
override def equals(that: Any): Boolean

Compares the receiver object (this) with the argument object (that) for equivalence.

Compares the receiver object (this) with the argument object (that) for equivalence.

Any implementation of this method should be an equivalence relation:

  • It is reflexive: for any instance x of type Any, x.equals(x) should return true.
  • It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any instances x, y, and z of type Any if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode to ensure that objects which are "equal" (o1.equals(o2) returns true) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)).

Value parameters

that

the object to compare against this object for equality.

Attributes

Returns

true if the receiver object is equivalent to the argument; false otherwise.

Definition Classes
Chunk -> Seq -> Equals -> Any
Inherited from:
Chunk
final override def exists(f: Char => Boolean): Boolean

Determines whether a predicate is satisfied for at least one element of this chunk.

Determines whether a predicate is satisfied for at least one element of this chunk.

Attributes

Definition Classes
Inherited from:
Chunk
override def filterNot(pred: Char => Boolean): Chunk[Char]

Attributes

Definition Classes
Inherited from:
StrictOptimizedIterableOps
final def filterZIO[R, E](f: Char => ZIO[R, E, Boolean])(implicit trace: Trace): ZIO[R, E, Chunk[Char]]

Filters this chunk by the specified effectful predicate, retaining all elements for which the predicate evaluates to true.

Filters this chunk by the specified effectful predicate, retaining all elements for which the predicate evaluates to true.

Attributes

Inherited from:
Chunk
final override def find(f: Char => Boolean): Option[Char]

Returns the first element that satisfies the predicate.

Returns the first element that satisfies the predicate.

Attributes

Definition Classes
Inherited from:
Chunk

Attributes

Inherited from:
SeqOps
final def findZIO[R, E](f: Char => ZIO[R, E, Boolean])(implicit trace: Trace): ZIO[R, E, Option[Char]]

Returns the first element that satisfies the effectful predicate.

Returns the first element that satisfies the effectful predicate.

Attributes

Inherited from:
Chunk
final override def flatMap[B](f: Char => IterableOnce[B]): Chunk[B]

Returns the concatenation of mapping every element into a new chunk using the specified function.

Returns the concatenation of mapping every element into a new chunk using the specified function.

Attributes

Definition Classes
Inherited from:
ChunkLike
override def flatten[B](implicit ev: Char => IterableOnce[B]): Chunk[B]

Flattens a chunk of chunks into a single chunk by concatenating all chunks.

Flattens a chunk of chunks into a single chunk by concatenating all chunks.

Attributes

Definition Classes
Inherited from:
ChunkLike
def float(index: Int)(implicit ev: Char <:< Float): Float

Get the element at the specified index.

Get the element at the specified index.

Attributes

Inherited from:
Chunk
def fold[A1 >: Char](z: A1)(op: (A1, A1) => A1): A1

Attributes

Inherited from:
IterableOnceOps
override def foldLeft[S](s0: S)(f: (S, Char) => S): S

Folds over the elements in this chunk from the left.

Folds over the elements in this chunk from the left.

Attributes

Definition Classes
Inherited from:
Arr (hidden)
override def foldRight[S](s0: S)(f: (Char, S) => S): S

Folds over the elements in this chunk from the right.

Folds over the elements in this chunk from the right.

Attributes

Definition Classes
Inherited from:
Arr (hidden)
final def foldWhile[S](s0: S)(pred: S => Boolean)(f: (S, Char) => S): S

Folds over the elements in this chunk from the left. Stops the fold early when the condition is not fulfilled.

Folds over the elements in this chunk from the left. Stops the fold early when the condition is not fulfilled.

Attributes

Inherited from:
Chunk
final def foldWhileZIO[R, E, S](z: S)(pred: S => Boolean)(f: (S, Char) => ZIO[R, E, S])(implicit trace: Trace): ZIO[R, E, S]

Attributes

Inherited from:
Chunk
final def foldZIO[R, E, S](s: S)(f: (S, Char) => ZIO[R, E, S])(implicit trace: Trace): ZIO[R, E, S]

Effectfully folds over the elements in this chunk from the left.

Effectfully folds over the elements in this chunk from the left.

Attributes

Inherited from:
Chunk
final override def forall(f: Char => Boolean): Boolean

Determines whether a predicate is satisfied for all elements of this chunk.

Determines whether a predicate is satisfied for all elements of this chunk.

Attributes

Definition Classes
Inherited from:
Chunk
override def foreach[B](f: Char => B): Unit

Attributes

Definition Classes
Inherited from:
Arr (hidden)

Attributes

Inherited from:
IterableFactoryDefaults
def groupBy[K](f: Char => K): Map[K, Chunk[Char]]

Attributes

Inherited from:
IterableOps
def groupMap[K, B](key: Char => K)(f: Char => B): Map[K, Chunk[B]]

Attributes

Inherited from:
IterableOps
def groupMapReduce[K, B](key: Char => K)(f: Char => B)(reduce: (B, B) => B): Map[K, B]

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOps
final override def hashCode: Int

Calculates a hash code value for the object.

Calculates a hash code value for the object.

The default hashing algorithm is platform dependent.

Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

Attributes

Returns

the hash code value for this object.

Definition Classes
Chunk -> Seq -> Any
Inherited from:
Chunk
override def head: Char

Returns the first element of this chunk. Note that this method is partial in that it will throw an exception if the chunk is empty. Consider using headOption to explicitly handle the possibility that the chunk is empty or iterating over the elements of the chunk in lower level, performance sensitive code unless you really only need the first element of the chunk.

Returns the first element of this chunk. Note that this method is partial in that it will throw an exception if the chunk is empty. Consider using headOption to explicitly handle the possibility that the chunk is empty or iterating over the elements of the chunk in lower level, performance sensitive code unless you really only need the first element of the chunk.

Attributes

Definition Classes
Inherited from:
Chunk
final override def headOption: Option[Char]

Returns the first element of this chunk if it exists.

Returns the first element of this chunk if it exists.

Attributes

Definition Classes
Inherited from:
Chunk
def indexOf[B >: Char](elem: B): Int

Attributes

Inherited from:
SeqOps
def indexOf[B >: Char](elem: B, from: Int): Int

Attributes

Inherited from:
SeqOps
def indexOfSlice[B >: Char](that: Seq[B]): Int

Attributes

Inherited from:
SeqOps
def indexOfSlice[B >: Char](that: Seq[B], from: Int): Int

Attributes

Inherited from:
SeqOps
final override def indexWhere(f: Char => Boolean, from: Int): Int

Returns the first index for which the given predicate is satisfied after or at some given index.

Returns the first index for which the given predicate is satisfied after or at some given index.

Attributes

Definition Classes
Inherited from:
Chunk

Attributes

Inherited from:
SeqOps
def indices: Range

Attributes

Inherited from:
SeqOps
def init: Chunk[Char]

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOps
def int(index: Int)(implicit ev: Char <:< Int): Int

Get the element at the specified index.

Get the element at the specified index.

Attributes

Inherited from:
Chunk
override def intersect[B >: Char](that: Seq[B]): Chunk[Char]

Attributes

Definition Classes
Inherited from:
StrictOptimizedSeqOps

Attributes

Inherited from:
SeqOps
final override def isEmpty: Boolean

Determines if the chunk is empty.

Determines if the chunk is empty.

Attributes

Definition Classes
Inherited from:
Chunk
override def isTraversableAgain: Boolean

Attributes

Definition Classes
Inherited from:
IterableOps
override def iterator: Iterator[Char]

Attributes

Definition Classes
Inherited from:
Arr (hidden)
override def knownSize: Int

Attributes

Definition Classes
Inherited from:
IndexedSeqOps
override def last: Char

Attributes

Definition Classes
Inherited from:
IndexedSeqOps
def lastIndexOf[B >: Char](elem: B, end: Int): Int

Attributes

Inherited from:
SeqOps
def lastIndexOfSlice[B >: Char](that: Seq[B]): Int

Attributes

Inherited from:
SeqOps
def lastIndexOfSlice[B >: Char](that: Seq[B], end: Int): Int

Attributes

Inherited from:
SeqOps

Attributes

Inherited from:
SeqOps

Attributes

Inherited from:
SeqOps
final override def lastOption: Option[Char]

Returns the last element of this chunk if it exists.

Returns the last element of this chunk if it exists.

Attributes

Definition Classes
Inherited from:
Chunk
def lazyZip[B](that: Iterable[B]): LazyZip2[Char, B, Iterable.this.type]

Attributes

Inherited from:
Iterable
final override def lengthCompare(that: Iterable[_]): Int

Attributes

Definition Classes
Inherited from:
IndexedSeqOps
final override def lengthCompare(len: Int): Int

Attributes

Definition Classes
Inherited from:
IndexedSeqOps

Attributes

Inherited from:
SeqOps
def lift: Int => Option[Char]

Attributes

Inherited from:
PartialFunction
def long(index: Int)(implicit ev: Char <:< Long): Long

Get the element at the specified index.

Get the element at the specified index.

Attributes

Inherited from:
Chunk
final override def map[B](f: Char => B): Chunk[B]

Returns a chunk with the elements mapped by the specified function.

Returns a chunk with the elements mapped by the specified function.

Attributes

Definition Classes
Inherited from:
ChunkLike
final def mapAccum[S1, B](s1: S1)(f1: (S1, Char) => (S1, B)): (S1, Chunk[B])

Statefully maps over the chunk, producing new elements of type B.

Statefully maps over the chunk, producing new elements of type B.

Attributes

Inherited from:
Chunk
final def mapAccumZIO[R, E, S1, B](s1: S1)(f1: (S1, Char) => ZIO[R, E, (S1, B)])(implicit trace: Trace): ZIO[R, E, (S1, Chunk[B])]

Statefully and effectfully maps over the elements of this chunk to produce new elements.

Statefully and effectfully maps over the elements of this chunk to produce new elements.

Attributes

Inherited from:
Chunk
final def mapZIO[R, E, B](f: Char => ZIO[R, E, B])(implicit trace: Trace): ZIO[R, E, Chunk[B]]

Effectfully maps the elements of this chunk.

Effectfully maps the elements of this chunk.

Attributes

Inherited from:
Chunk
final def mapZIODiscard[R, E](f: Char => ZIO[R, E, Any])(implicit trace: Trace): ZIO[R, E, Unit]

Effectfully maps the elements of this chunk purely for the effects.

Effectfully maps the elements of this chunk purely for the effects.

Attributes

Inherited from:
Chunk
final def mapZIOPar[R, E, B](f: Char => ZIO[R, E, B])(implicit trace: Trace): ZIO[R, E, Chunk[B]]

Effectfully maps the elements of this chunk in parallel.

Effectfully maps the elements of this chunk in parallel.

Attributes

Inherited from:
Chunk
final def mapZIOParDiscard[R, E](f: Char => ZIO[R, E, Any])(implicit trace: Trace): ZIO[R, E, Unit]

Effectfully maps the elements of this chunk in parallel purely for the effects.

Effectfully maps the elements of this chunk in parallel purely for the effects.

Attributes

Inherited from:
Chunk
override def materialize[A1 >: Char]: Chunk[A1]

Materializes a chunk into a chunk backed by an array. This method can improve the performance of bulk operations.

Materializes a chunk into a chunk backed by an array. This method can improve the performance of bulk operations.

Attributes

Definition Classes
Arr -> Chunk
Inherited from:
Arr (hidden)
def max[B >: Char](implicit ord: Ordering[B]): Char

Attributes

Inherited from:
IterableOnceOps
def maxBy[B](f: Char => B)(implicit ord: Ordering[B]): Char

Attributes

Inherited from:
IterableOnceOps
def maxByOption[B](f: Char => B)(implicit ord: Ordering[B]): Option[Char]

Attributes

Inherited from:
IterableOnceOps
def maxOption[B >: Char](implicit ord: Ordering[B]): Option[Char]

Attributes

Inherited from:
IterableOnceOps
def min[B >: Char](implicit ord: Ordering[B]): Char

Attributes

Inherited from:
IterableOnceOps
def minBy[B](f: Char => B)(implicit ord: Ordering[B]): Char

Attributes

Inherited from:
IterableOnceOps
def minByOption[B](f: Char => B)(implicit ord: Ordering[B]): Option[Char]

Attributes

Inherited from:
IterableOnceOps
def minOption[B >: Char](implicit ord: Ordering[B]): Option[Char]

Attributes

Inherited from:
IterableOnceOps
final def mkString: String

Attributes

Inherited from:
IterableOnceOps
final def mkString(sep: String): String

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOnceOps
def negate(implicit ev: Char <:< Boolean): BitChunkByte

Returns the bitwise NOT of this chunk.

Returns the bitwise NOT of this chunk.

Attributes

Inherited from:
Chunk

Attributes

Inherited from:
IterableFactoryDefaults

Attributes

Inherited from:
IterableOnceOps
def nonEmptyOrElse[B](ifEmpty: => B)(fn: (NonEmptyChunk[Char]) => B): B

Runs fn if a chunk is not empty or returns default value

Runs fn if a chunk is not empty or returns default value

Attributes

Inherited from:
Chunk

Attributes

Inherited from:
PartialFunction
override def padTo[B >: Char](len: Int, elem: B): Chunk[B]

Attributes

Definition Classes
Inherited from:
StrictOptimizedSeqOps
override def partition(p: Char => Boolean): (Chunk[Char], Chunk[Char])

Attributes

Definition Classes
Inherited from:
StrictOptimizedIterableOps
final override def partitionMap[B, C](f: Char => Either[B, C]): (Chunk[B], Chunk[C])

Partitions the elements of this chunk into two chunks using the specified function.

Partitions the elements of this chunk into two chunks using the specified function.

Attributes

Definition Classes
Inherited from:
Chunk
override def patch[B >: Char](from: Int, other: IterableOnce[B], replaced: Int): Chunk[B]

Attributes

Definition Classes
Inherited from:
StrictOptimizedSeqOps

Attributes

Inherited from:
SeqOps
final override def prepended[A1 >: Char](a1: A1): Chunk[A1]

Attributes

Definition Classes
Inherited from:
ChunkLike
override def prependedAll[B >: Char](prefix: IterableOnce[B]): Chunk[B]

Attributes

Definition Classes
Inherited from:
StrictOptimizedSeqOps
def product[B >: Char](implicit num: Numeric[B]): B

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
def reduce[B >: Char](op: (B, B) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceLeft[B >: Char](op: (B, Char) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceLeftOption[B >: Char](op: (B, Char) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
def reduceOption[B >: Char](op: (B, B) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
def reduceRight[B >: Char](op: (Char, B) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceRightOption[B >: Char](op: (Char, B) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
override def reverse: Chunk[Char]

Attributes

Definition Classes
Inherited from:
IndexedSeqOps
override def reverseIterator: Iterator[Char]

Attributes

Definition Classes
Inherited from:
IndexedSeqOps
override protected def reversed: Iterable[Char]

Attributes

Definition Classes
Inherited from:
IndexedSeqOps
def runWith[U](action: Char => U): Int => Boolean

Attributes

Inherited from:
PartialFunction
override def sameElements[B >: Char](o: IterableOnce[B]): Boolean

Attributes

Definition Classes
Inherited from:
IndexedSeq

Attributes

Inherited from:
SeqOps

Attributes

Inherited from:
SeqOps
def scan[B >: Char](z: B)(op: (B, B) => B): Chunk[B]

Attributes

Inherited from:
IterableOps
override def scanLeft[B](z: B)(op: (B, Char) => B): Chunk[B]

Attributes

Definition Classes
Inherited from:
StrictOptimizedIterableOps
def scanRight[B](z: B)(op: (Char, B) => B): Chunk[B]

Attributes

Inherited from:
IterableOps
override def search[B >: Char](elem: B, from: Int, to: Int)(implicit ord: Ordering[B]): SearchResult

Attributes

Definition Classes
Inherited from:
IndexedSeqOps
override def search[B >: Char](elem: B)(implicit ord: Ordering[B]): SearchResult

Attributes

Definition Classes
Inherited from:
IndexedSeqOps

Attributes

Inherited from:
SeqOps
final def segmentLength(p: Char => Boolean): Int

Attributes

Inherited from:
SeqOps
def short(index: Int)(implicit ev: Char <:< Short): Short

Get the element at the specified index.

Get the element at the specified index.

Attributes

Inherited from:
Chunk
final override def size: Int

Attributes

Definition Classes
Inherited from:
SeqOps
final override def sizeCompare(that: Iterable[_]): Int

Attributes

Definition Classes
Inherited from:
SeqOps
final override def sizeCompare(otherSize: Int): Int

Attributes

Definition Classes
Inherited from:
SeqOps
final def sizeIs: SizeCompareOps

Attributes

Inherited from:
IterableOps
override def slice(from: Int, until: Int): Chunk[Char]

Attributes

Definition Classes
Inherited from:
Chunk

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOps
def sortBy[B](f: Char => B)(implicit ord: Ordering[B]): Chunk[Char]

Attributes

Inherited from:
SeqOps

Attributes

Inherited from:
SeqOps
override def sorted[A1 >: Char](implicit ord: Ordering[A1]): Chunk[Char]

Attributes

Definition Classes
Inherited from:
ChunkLike
override def span(f: Char => Boolean): (Chunk[Char], Chunk[Char])

Attributes

Definition Classes
Inherited from:
Chunk
final def split(n: Int): Chunk[Chunk[Char]]

Splits this chunk into n equally sized chunks.

Splits this chunk into n equally sized chunks.

Attributes

Inherited from:
Chunk
final override def splitAt(n: Int): (Chunk[Char], Chunk[Char])

Returns two splits of this chunk at the specified index.

Returns two splits of this chunk at the specified index.

Attributes

Definition Classes
Inherited from:
Chunk
final def splitWhere(f: Char => Boolean): (Chunk[Char], Chunk[Char])

Splits this chunk on the first element that matches this predicate.

Splits this chunk on the first element that matches this predicate.

Attributes

Inherited from:
Chunk

Attributes

Inherited from:
SeqOps
override def stepper[S <: Stepper[_]](implicit shape: StepperShape[Char, S]): S & EfficientSplit

Attributes

Definition Classes
Inherited from:
IndexedSeqOps
def sum[B >: Char](implicit num: Numeric[B]): B

Attributes

Inherited from:
IterableOnceOps
def tail: Chunk[Char]

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOps
override def take(n: Int): Chunk[Char]

Takes the first n elements of the chunk.

Takes the first n elements of the chunk.

Attributes

Definition Classes
Inherited from:
Chunk
override def takeRight(n: Int): Chunk[Char]

Takes the last n elements of the chunk.

Takes the last n elements of the chunk.

Attributes

Definition Classes
Inherited from:
Chunk
def takeWhileZIO[R, E](p: Char => ZIO[R, E, Boolean])(implicit trace: Trace): ZIO[R, E, Chunk[Char]]

Takes all elements so long as the effectual predicate returns true.

Takes all elements so long as the effectual predicate returns true.

Attributes

Inherited from:
Chunk
override def tapEach[U](f: Char => U): Chunk[Char]

Attributes

Definition Classes
Inherited from:
StrictOptimizedIterableOps
def to[C1](factory: Factory[Char, C1]): C1

Attributes

Inherited from:
IterableOnceOps
override def toArray[A1 >: Char : ClassTag]: Array[A1]

Converts the chunk into an array.

Converts the chunk into an array.

Attributes

Definition Classes
Inherited from:
Chunk
final def toBinaryString(implicit ev: Char <:< Boolean): String

Renders this chunk of bits as a binary string.

Renders this chunk of bits as a binary string.

Attributes

Inherited from:
Chunk
final def toBuffer[B >: Char]: Buffer[B]

Attributes

Inherited from:
IterableOnceOps
final override def toIndexedSeq: IndexedSeq[Char]

Attributes

Definition Classes
Inherited from:
IndexedSeq
final override def toList: List[Char]

Attributes

Definition Classes
Inherited from:
Chunk
def toMap[K, V](implicit ev: Char <:< (K, V)): Map[K, V]

Attributes

Inherited from:
IterableOnceOps
def toPackedByte(implicit ev: Char <:< Boolean): Chunk[Byte]

Attributes

Inherited from:
Chunk
def toPackedInt(endianness: Endianness)(implicit ev: Char <:< Boolean): Chunk[Int]

Attributes

Inherited from:
Chunk
def toPackedLong(endianness: Endianness)(implicit ev: Char <:< Boolean): Chunk[Long]

Attributes

Inherited from:
Chunk
final override def toSeq: Seq.this.type

Attributes

Definition Classes
Inherited from:
Seq
def toSet[B >: Char]: Set[B]

Attributes

Inherited from:
IterableOnceOps
final override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Chunk -> Seq -> Function1 -> Iterable -> Any
Inherited from:
Chunk
final override def toVector: Vector[Char]

Attributes

Definition Classes
Inherited from:
Chunk
def transpose[B](implicit asIterable: Char => Iterable[B]): Chunk[Chunk[B]]

Attributes

Inherited from:
IterableOps
def unapply(a: Int): Option[Char]

Attributes

Inherited from:
PartialFunction
override def unzip[A1, A2](implicit asPair: Char => (A1, A2)): (Chunk[A1], Chunk[A2])

Attributes

Definition Classes
Inherited from:
StrictOptimizedIterableOps
override def unzip3[A1, A2, A3](implicit asTriple: Char => (A1, A2, A3)): (Chunk[A1], Chunk[A2], Chunk[A3])

Attributes

Definition Classes
Inherited from:
StrictOptimizedIterableOps
final override def updated[A1 >: Char](index: Int, elem: A1): Chunk[A1]

Attributes

Definition Classes
Inherited from:
ChunkLike
override def view: IndexedSeqView[Char]

Attributes

Definition Classes
Inherited from:
IndexedSeqOps

Attributes

Inherited from:
IterableOps
final def zip[B](that: Chunk[B])(implicit zippable: Zippable[Char, B]): Chunk[zippable.Out]

Zips this chunk with the specified chunk to produce a new chunk with pairs of elements from each chunk. The returned chunk will have the length of the shorter chunk.

Zips this chunk with the specified chunk to produce a new chunk with pairs of elements from each chunk. The returned chunk will have the length of the shorter chunk.

Attributes

Inherited from:
Chunk
override def zip[B](that: IterableOnce[B]): Chunk[(Char, B)]

Attributes

Definition Classes
Inherited from:
StrictOptimizedIterableOps
final def zipAll[B](that: Chunk[B]): Chunk[(Option[Char], Option[B])]

Zips this chunk with the specified chunk to produce a new chunk with pairs of elements from each chunk, filling in missing values from the shorter chunk with None. The returned chunk will have the length of the longer chunk.

Zips this chunk with the specified chunk to produce a new chunk with pairs of elements from each chunk, filling in missing values from the shorter chunk with None. The returned chunk will have the length of the longer chunk.

Attributes

Inherited from:
Chunk
def zipAll[A1 >: Char, B](that: Iterable[B], thisElem: A1, thatElem: B): Chunk[(A1, B)]

Attributes

Inherited from:
IterableOps
final def zipAllWith[B, C](that: Chunk[B])(left: Char => C, right: B => C)(both: (Char, B) => C): Chunk[C]

Zips with chunk with the specified chunk to produce a new chunk with pairs of elements from each chunk combined using the specified function both. If one chunk is shorter than the other uses the specified function left or right to map the element that does exist to the result type.

Zips with chunk with the specified chunk to produce a new chunk with pairs of elements from each chunk combined using the specified function both. If one chunk is shorter than the other uses the specified function left or right to map the element that does exist to the result type.

Attributes

Inherited from:
Chunk
final def zipWith[B, C](that: Chunk[B])(f: (Char, B) => C): Chunk[C]

Zips this chunk with the specified chunk using the specified combiner.

Zips this chunk with the specified chunk using the specified combiner.

Attributes

Inherited from:
Chunk
final override def zipWithIndex: Chunk[(Char, Int)]

Zips this chunk with the index of every element.

Zips this chunk with the index of every element.

Attributes

Definition Classes
Inherited from:
ChunkLike
final def zipWithIndexFrom(indexOffset: Int): Chunk[(Char, Int)]

Zips this chunk with the index of every element, starting from the initial index value.

Zips this chunk with the index of every element, starting from the initial index value.

Attributes

Inherited from:
Chunk
def |(that: Chunk[Boolean])(implicit ev: Char <:< Boolean): BitChunkByte

Returns the bitwise OR of this chunk and the specified chunk.

Returns the bitwise OR of this chunk and the specified chunk.

Attributes

Inherited from:
Chunk

Deprecated and Inherited methods

final def /:[B](z: B)(op: (B, Char) => B): B

Attributes

Deprecated
[Since version 2.13.0] Use foldLeft instead of /:
Inherited from:
IterableOnceOps
final def :\[B](z: B)(op: (Char, B) => B): B

Attributes

Deprecated
[Since version 2.13.0] Use foldRight instead of :\\
Inherited from:
IterableOnceOps
def aggregate[B](z: => B)(seqop: (B, Char) => B, combop: (B, B) => B): B

Attributes

Deprecated
[Since version 2.13.0] For sequential collections, prefer `foldLeft(z)(seqop)`. For parallel collections, use `ParIterableLike#aggregate`.
Inherited from:
IterableOnceOps

Attributes

Deprecated
[Since version 2.13.0] Use iterableFactory instead
Inherited from:
IterableOps
final def copyToBuffer[B >: Char](dest: Buffer[B]): Unit

Attributes

Deprecated
[Since version 2.13.0] Use `dest ++= coll` instead
Inherited from:
IterableOnceOps

Attributes

Deprecated
[Since version 2.13.0] Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)
Inherited from:
IterableOnceOps
final def prefixLength(p: Char => Boolean): Int

Attributes

Deprecated
[Since version 2.13.0] Use segmentLength instead of prefixLength
Inherited from:
SeqOps
final def repr: Chunk[Char]

Attributes

Deprecated
[Since version 2.13.0] Use coll instead of repr in a collection implementation, use the collection value itself from the outside
Inherited from:
IterableOps
def reverseMap[B](f: Char => B): Chunk[B]

Attributes

Deprecated
[Since version 2.13.0] Use .reverseIterator.map(f).to(...) instead of .reverseMap(f)
Inherited from:
SeqOps
def seq: Iterable.this.type

Attributes

Deprecated
[Since version 2.13.0] Iterable.seq always returns the iterable itself
Inherited from:
Iterable
final def toIterable: Iterable.this.type

Attributes

Deprecated
[Since version 2.13.7] toIterable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections
Inherited from:
Iterable
final def toIterator: Iterator[Char]

Attributes

Deprecated
[Since version 2.13.0] Use .iterator instead of .toIterator
Inherited from:
IterableOnceOps
final def toStream: Stream[Char]

Attributes

Deprecated
[Since version 2.13.0] Use .to(LazyList) instead of .toStream
Inherited from:
IterableOnceOps

Attributes

Deprecated
[Since version 2.13.0] toTraversable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections
Inherited from:
IterableOps
final def union[B >: Char](that: Seq[B]): Chunk[B]

Attributes

Deprecated
[Since version 2.13.0] Use `concat` instead
Inherited from:
SeqOps
override def view(from: Int, until: Int): IndexedSeqView[Char]

Attributes

Deprecated
[Since version 2.13.0] Use .view.slice(from, until) instead of .view(from, until)
Definition Classes
Inherited from:
IndexedSeqOps

Inherited fields

Returns a SeqFactory that can construct Chunk values. The SeqFactory exposes a newBuilder method that is not referentially transparent because it allocates mutable state.

Returns a SeqFactory that can construct Chunk values. The SeqFactory exposes a newBuilder method that is not referentially transparent because it allocates mutable state.

Attributes

Inherited from:
ChunkLike

Implicits

Inherited implicits

implicit val classTag: ClassTag[Char]

Attributes

Inherited from:
Arr (hidden)