Class/Object

scalaz

Cord

Related Docs: object Cord | package scalaz

Permalink

final case class Cord(self: FingerTree[Int, String]) extends Product with Serializable

A Cord is a purely functional data structure for efficiently storing and manipulating Strings that are potentially very long. Very similar to Rope[Char], but with better constant factors and a simpler interface since it's specialized for Strings.

Source
Cord.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Cord
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Cord(self: FingerTree[Int, String])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++(xs: Cord): Cord

    Permalink

    Appends another Cord to the end of this one.

    Appends another Cord to the end of this one. Time complexity: O(log (min N M)) where M and N are the lengths of the two Cords.

  4. def +:(x: ⇒ String): Cord

    Permalink

    Prepends a String to the beginning of this Cord.

    Prepends a String to the beginning of this Cord. Time complexity: O(1)

  5. def -:(x: ⇒ Char): Cord

    Permalink

    Prepends a Char to the beginning of this Cord.

    Prepends a Char to the beginning of this Cord. Time complexity: O(1)

  6. def :+(x: ⇒ String): Cord

    Permalink

    Appends a String to the end of this Cord.

    Appends a String to the end of this Cord. Time complexity: O(1)

  7. def :-(x: ⇒ Char): Cord

    Permalink

    Appends a Char to the end of this Cord.

    Appends a Char to the end of this Cord. Time complexity: O(1)

  8. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def apply(i: Int): Char

    Permalink

    Returns the character at the given position.

    Returns the character at the given position. Throws an error if the index is out of range. Time complexity: O(log N)

  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def drop(n: Int): Cord

    Permalink

    Removes the first n characters from the front of this Cord.

    Removes the first n characters from the front of this Cord. Time complexity: O(min N (N - n))

  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def flatMap(f: (Char) ⇒ Cord): Cord

    Permalink

    Transforms each character to a Cord according to the given function and concatenates them all into one Cord.

  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def init: Cord

    Permalink

    Removes the last character of this Cord.

    Removes the last character of this Cord. Time complexity: O(1)

  18. def isEmpty: Boolean

    Permalink

    Returns whether this Cord will expand to an empty string.

  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def length: Int

    Permalink

    Returns the number of characters in this Cord.

    Returns the number of characters in this Cord. Time complexity: O(1)

  21. def map(f: (Char) ⇒ Char): Cord

    Permalink

    Modifies each character in this Cord by the given function.

    Modifies each character in this Cord by the given function. Time complexity: O(N)

  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. def nonEmpty: Boolean

    Permalink

    Returns whether this Cord will expand to a non-empty string.

  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. val self: FingerTree[Int, String]

    Permalink
  27. def size: Int

    Permalink

    Returns the number of characters in this Cord.

    Returns the number of characters in this Cord. Time complexity: O(1)

  28. def split(i: Int): (Cord, Cord)

    Permalink

    Splits this Cord in two at the given position.

    Splits this Cord in two at the given position. Time complexity: O(log N)

  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def tail: Cord

    Permalink

    Removes the first character of this Cord.

    Removes the first character of this Cord. Time complexity: O(1)

  31. def take(n: Int): Cord

    Permalink

    Returns the first n characters at the front of this Cord.

    Returns the first n characters at the front of this Cord. Time complexity: O(min N (N - n))

  32. def toList: List[Char]

    Permalink
  33. def toStream: Stream[Char]

    Permalink
  34. def toString(): String

    Permalink
    Definition Classes
    Cord → AnyRef → Any
  35. def toVector: Vector[Char]

    Permalink
  36. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped