scalaz

Cord

sealed trait Cord extends Ops[FingerTree[Int, String]]

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
Ops[FingerTree[Int, String]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Cord
  2. Ops
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def self: FingerTree[Int, String]

    Definition Classes
    Ops

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    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.

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

    Prepends a String to the beginning of this Cord.

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

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

    Prepends a Char to the beginning of this Cord.

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

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

    Appends a String to the end of this Cord.

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

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

    Appends a Char to the end of this Cord.

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

  9. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  11. def apply(i: Int): Char

    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)

  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. def clone(): AnyRef

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

    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))

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

    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit

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

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

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

    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  21. def init: Cord

    Removes the last character of this Cord.

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

  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. def length: Int

    Returns the number of characters in this Cord.

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

  24. def map[B](f: (Char) ⇒ Char): Cord

    Modifies each character in this Cord by the given function.

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

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

    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  28. def size: Int

    Returns the number of characters in this Cord.

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

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

    Splits this Cord in two at the given position.

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

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

    Definition Classes
    AnyRef
  31. def tail: Cord

    Removes the first character of this Cord.

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

  32. def take(n: Int): Cord

    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))

  33. def toIndexedSeq: IndexedSeq[Char]

  34. def toList: List[Char]

  35. def toStream: Stream[Char]

  36. def toString(): String

    Definition Classes
    Cord → AnyRef → Any
  37. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Ops[FingerTree[Int, String]]

Inherited from AnyRef

Inherited from Any

Ungrouped