scala.xml

NodeSeq

class NodeSeq extends Seq[Node] with SeqLike[Node, NodeSeq] with Equality

This class implements a wrapper around Seq[Node] that adds XPath and comprehension methods .

attributes: abstract
go to: companion
known subclasses: Node, Document
source: NodeSeq.scala
    version
  1. 1 . 0

    authors:
  1. Burak Emir

Inherited
  1. Hide All
  2. Show all
  1. Equality
  2. Seq
  3. Seq
  4. SeqLike
  5. PartialFunction
  6. Function1
  7. Iterable
  8. Iterable
  9. IterableLike
  10. Equals
  11. Traversable
  12. Immutable
  13. Traversable
  14. GenericTraversableTemplate
  15. TraversableLike
  16. TraversableOnce
  17. HasNewBuilder
  18. AnyRef
  19. Any
Visibility
  1. Public
  2. All

Instance constructors

  1. new NodeSeq()

Type Members

  1. type Self = NodeSeq

    The type implementing this traversable

  2. class WithFilter extends AnyRef

    A class supporting filtered operations .

Value Members

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

  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

  3. def ##(): Int

  4. def $asInstanceOf[T0](): T0

  5. def $isInstanceOf[T0](): Boolean

  6. def ++(that: TraversableOnce[Node]): Traversable[Node]

    [use case] Concatenates this immutable sequence with the elements of a traversable collection .

  7. def ++[B >: Node, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[NodeSeq, B, That]): That

    Concatenates this immutable sequence with the elements of a traversable collection .

  8. def +:(elem: Node): Seq[Node]

    [use case] Prepends an element to this immutable sequence

  9. def +:[B >: Node, That](elem: B)(implicit bf: CanBuildFrom[NodeSeq, B, That]): That

    Prepends an element to this immutable sequence

  10. def /:[B](z: B)(op: (B, Node) ⇒ B): B

    Applies a binary operator to a start value and all elements of this immutable sequence, going left to right .

  11. def :+(elem: Node): Seq[Node]

    [use case] Appends an element to this immutable sequence

  12. def :+[B >: Node, That](elem: B)(implicit bf: CanBuildFrom[NodeSeq, B, That]): That

    Appends an element to this immutable sequence

  13. def :\[B](z: B)(op: (Node, B) ⇒ B): B

    Applies a binary operator to all elements of this immutable sequence and a start value, going right to left .

  14. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

  15. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

  16. def \(that: String): NodeSeq

    Projection function, which returns elements of this sequence based on the string that.

  17. def \\(that: String): NodeSeq

    Projection function, which returns elements of this sequence and of all its subsequences, based on the string that.

  18. def addString(b: StringBuilder): StringBuilder

    Appends all elements of this immutable sequence to a string builder .

  19. def addString(b: StringBuilder, sep: String): StringBuilder

    Appends all elements of this immutable sequence to a string builder using a separator string .

  20. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Appends all elements of this immutable sequence to a string builder using start, end, and separator strings .

  21. def andThen[C](k: (Node) ⇒ C): PartialFunction[Int, C]

    Composes this partial function with a transformation function that gets applied to results of this partial function .

  22. def apply(f: (Node) ⇒ Boolean): NodeSeq

  23. def apply(i: Int): Node

    Selects an element by its index in the immutable sequence .

  24. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

  25. def basisForHashCode: Seq[Any]

  26. def canEqual(other: Any): Boolean

    We insist we're only equal to other xml .

  27. def clone(): AnyRef

    This method creates and returns a copy of the receiver object .

  28. def collect[B](pf: PartialFunction[Node, B]): Traversable[B]

    [use case] Builds a new collection by applying a partial function to all elements of this immutable sequence on which the function is defined .

  29. def collect[B, That](pf: PartialFunction[Node, B])(implicit bf: CanBuildFrom[NodeSeq, B, That]): That

    Builds a new collection by applying a partial function to all elements of this immutable sequence on which the function is defined .

  30. def companion: GenericCompanion[Seq[A][A]]

    The factory companion object that builds instances of class immutable .

  31. def compose[A](g: (A) ⇒ Int): (A) ⇒ Node

    (f compose g)(x) == f(g(x))

  32. def contains(elem: Any): Boolean

    Tests whether this immutable sequence contains a given value as an element .

  33. def containsSlice[B](that: Seq[B]): Boolean

    Tests whether this immutable sequence contains a given sequence as a slice .

  34. def copyToArray(xs: Array[Node], start: Int, len: Int): Unit

    [use case] Copies elements of this immutable sequence to an array .

  35. def copyToArray[B >: Node](xs: Array[B], start: Int, len: Int): Unit

    Copies elements of this immutable sequence to an array .

  36. def copyToArray(xs: Array[Node]): Unit

    [use case] Copies values of this immutable sequence to an array .

  37. def copyToArray[B >: Node](xs: Array[B]): Unit

    Copies values of this immutable sequence to an array .

  38. def copyToArray(xs: Array[Node], start: Int): Unit

    [use case] Copies values of this immutable sequence to an array .

  39. def copyToArray[B >: Node](xs: Array[B], start: Int): Unit

    Copies values of this immutable sequence to an array .

  40. def copyToBuffer[B >: Node](dest: Buffer[B]): Unit

    Copies all elements of this immutable sequence to a buffer .

  41. def corresponds[B](that: Seq[B])(p: (Node, B) ⇒ Boolean): Boolean

    Tests whether every element of this immutable sequence relates to the corresponding element of another sequence by satisfying a test predicate .

  42. def count(p: (Node) ⇒ Boolean): Int

    Counts the number of elements in the immutable sequence which satisfy a predicate .

  43. def diff(that: Seq[Node]): Seq[Node]

    [use case] Computes the multiset difference between this immutable sequence and another sequence .

  44. def diff[B >: Node](that: Seq[B]): NodeSeq

    Computes the multiset difference between this immutable sequence and another sequence .

  45. def distinct: NodeSeq

    Builds a new immutable sequence from this immutable sequence without any duplicate elements .

  46. def drop(n: Int): NodeSeq

    Selects all elements except first n ones.

  47. def dropRight(n: Int): NodeSeq

    Selects all elements except last n ones.

  48. def dropWhile(p: (Node) ⇒ Boolean): NodeSeq

    Drops longest prefix of elements that satisfy a predicate .

  49. def elements: Iterator[Node]

  50. def endsWith[B](that: Seq[B]): Boolean

    Tests whether this immutable sequence ends with the given sequence .

  51. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

  52. def equals(other: Any): Boolean

    The equality method defined in AnyRef.

  53. def equalsWith[B](that: Seq[B])(f: (Node, B) ⇒ Boolean): Boolean

    Tests whether every element of this immutable sequence relates to the corresponding element of another sequence by satisfying a test predicate .

  54. def exists(p: (Node) ⇒ Boolean): Boolean

    Tests whether a predicate holds for some of the elements of this immutable sequence .

  55. def filter(p: (Node) ⇒ Boolean): NodeSeq

    Selects all elements of this immutable sequence which satisfy a predicate .

  56. def filterNot(p: (Node) ⇒ Boolean): NodeSeq

    Selects all elements of this immutable sequence which do not satisfy a predicate .

  57. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object .

  58. def find(p: (Node) ⇒ Boolean): Option[Node]

    Finds the first element of the immutable sequence satisfying a predicate, if any .

  59. def findIndexOf(p: (Node) ⇒ Boolean): Int

    Returns index of the first element satisfying a predicate, or -1.

  60. def findLastIndexOf(p: (Node) ⇒ Boolean): Int

    Returns index of the last element satisfying a predicate, or -1 .

  61. def first: Node

  62. def firstOption: Option[Node]

    None if iterable is empty.

  63. def flatMap[B](f: (Node) ⇒ Traversable[B]): Traversable[B]

    [use case] Builds a new collection by applying a function to all elements of this immutable sequence and concatenating the results .

  64. def flatMap[B, That](f: (Node) ⇒ Traversable[B])(implicit bf: CanBuildFrom[NodeSeq, B, That]): That

    Builds a new collection by applying a function to all elements of this immutable sequence and concatenating the results .

  65. def flatten[B]: CC[B]

    [use case] Converts this immutable sequence of traversable collections into a immutable sequence in which all element collections are concatenated .

  66. def flatten[B](implicit asTraversable: (Node) ⇒ Traversable[B]): Seq[B]

    Converts this immutable sequence of traversable collections into a immutable sequence in which all element collections are concatenated .

  67. def foldLeft[B](z: B)(op: (B, Node) ⇒ B): B

    Applies a binary operator to a start value and all elements of this immutable sequence, going left to right .

  68. def foldRight[B](z: B)(op: (Node, B) ⇒ B): B

    Applies a binary operator to all elements of this immutable sequence and a start value, going right to left .

  69. def forall(p: (Node) ⇒ Boolean): Boolean

    Tests whether a predicate holds for all elements of this immutable sequence .

  70. def foreach(f: (Node) ⇒ Unit): Unit

    [use case] Applies a function f to all elements of this immutable sequence.

  71. def foreach[U](f: (Node) ⇒ U): Unit

    Applies a function f to all elements of this immutable sequence.

  72. def genericBuilder[B]: Builder[B, Seq[B]]

    The generic builder that builds instances of immutable .

  73. def getClass(): java.lang.Class[_ <: java.lang.Object]

    Returns a representation that corresponds to the dynamic class of the receiver object .

  74. def groupBy[K](f: (Node) ⇒ K): Map[K, NodeSeq]

    Partitions this immutable sequence into a map of immutable sequences according to some discriminator function .

  75. def grouped(size: Int): Iterator[NodeSeq]

    Partitions elements in fixed size immutable sequences .

  76. def hasDefiniteSize: Boolean

    Tests whether this immutable sequence is known to have a finite size .

  77. def hashCode(): Int

    It's be nice to make these final, but there are probably people out there subclassing the XML types, especially when it comes to equals .

  78. def head: Node

    Selects the first element of this immutable sequence .

  79. def headOption: Option[Node]

    Optionally selects the first element .

  80. def indexOf(elem: Node, from: Int): Int

    [use case] Finds index of first occurrence of some value in this immutable sequence after or at some start index .

  81. def indexOf[B >: Node](elem: B, from: Int): Int

    Finds index of first occurrence of some value in this immutable sequence after or at some start index .

  82. def indexOf(elem: Node): Int

    [use case] Finds index of first occurrence of some value in this immutable sequence .

  83. def indexOf[B >: Node](elem: B): Int

    Finds index of first occurrence of some value in this immutable sequence .

  84. def indexOfSlice[B >: Node](that: Seq[B], from: Int): Int

    Finds first index after or at a start index where this immutable sequence contains a given sequence as a slice .

  85. def indexOfSlice[B >: Node](that: Seq[B]): Int

    Finds first index where this immutable sequence contains a given sequence as a slice .

  86. def indexWhere(p: (Node) ⇒ Boolean, from: Int): Int

    Finds index of the first element satisfying some predicate after or at some start index .

  87. def indexWhere(p: (Node) ⇒ Boolean): Int

    Finds index of first element satisfying some predicate .

  88. def indices: Range

    Produces the range of all indices of this sequence .

  89. def init: NodeSeq

    Selects all elements except the last .

  90. def intersect(that: Seq[Node]): Seq[Node]

    [use case] Computes the multiset intersection between this immutable sequence and another sequence .

  91. def intersect[B >: Node](that: Seq[B]): NodeSeq

    Computes the multiset intersection between this immutable sequence and another sequence .

  92. def isDefinedAt(idx: Int): Boolean

    Tests whether this immutable sequence contains given index .

  93. def isEmpty: Boolean

    Tests whether this immutable sequence is empty .

  94. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

  95. def isTraversableAgain: Boolean

    Tests whether this immutable sequence can be repeatedly traversed .

  96. def iterator: Iterator[Node]

    Creates a new iterator over all elements contained in this iterable object .

  97. def last: Node

    Selects the last element .

  98. def lastIndexOf(elem: Node, end: Int): Int

    [use case] Finds index of last occurrence of some value in this immutable sequence before or at a given end index .

  99. def lastIndexOf[B >: Node](elem: B, end: Int): Int

    Finds index of last occurrence of some value in this immutable sequence before or at a given end index .

  100. def lastIndexOf(elem: Node): Int

    [use case] Finds index of last occurrence of some value in this immutable sequence .

  101. def lastIndexOf[B >: Node](elem: B): Int

    Finds index of last occurrence of some value in this immutable sequence .

  102. def lastIndexOfSlice[B >: Node](that: Seq[B], end: Int): Int

    Finds last index before or at a given end index where this immutable sequence contains a given sequence as a slice .

  103. def lastIndexOfSlice[B >: Node](that: Seq[B]): Int

    Finds last index where this immutable sequence contains a given sequence as a slice .

  104. def lastIndexWhere(p: (Node) ⇒ Boolean, end: Int): Int

    Finds index of last element satisfying some predicate before or at given end index .

  105. def lastIndexWhere(p: (Node) ⇒ Boolean): Int

    Finds index of last element satisfying some predicate .

  106. def lastOption: Option[Node]

    Optionally selects the last element .

  107. def length: Int

    The length of the immutable sequence .

  108. def lengthCompare(len: Int): Int

    Compares the length of this immutable sequence to a test value .

  109. def lift: (Int) ⇒ Option[Node]

    Turns this partial function into an plain function returning an Option result.

  110. def map[B](f: (Node) ⇒ B): Traversable[B]

    [use case] Builds a new collection by applying a function to all elements of this immutable sequence .

  111. def map[B, That](f: (Node) ⇒ B)(implicit bf: CanBuildFrom[NodeSeq, B, That]): That

    Builds a new collection by applying a function to all elements of this immutable sequence .

  112. def max: Node

    [use case] Finds the largest element .

  113. def max[B >: Node](implicit cmp: Ordering[B]): Node

    Finds the largest element .

  114. def min: Node

    [use case] Finds the smallest element .

  115. def min[B >: Node](implicit cmp: Ordering[B]): Node

    Finds the smallest element .

  116. def mkString: String

    Displays all elements of this immutable sequence in a string .

  117. def mkString(sep: String): String

    Displays all elements of this immutable sequence in a string using a separator string .

  118. def mkString(start: String, sep: String, end: String): String

    Displays all elements of this immutable sequence in a string using start, end, and separator strings .

  119. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

  120. def newBuilder: Builder[Node, NodeSeq]

    Creates a list buffer as builder for this class

  121. def nonEmpty: Boolean

    Tests whether the immutable sequence is not empty .

  122. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor .

  123. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor .

  124. def orElse[A1 <: Int, B1 >: Node](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]

    Composes this partial function with a fallback partial function which gets applied where this partial function is not defined .

  125. def padTo(len: Int, elem: Node): Seq[Node]

    [use case] Appends an element value to this immutable sequence until a given target length is reached .

  126. def padTo[B >: Node, That](len: Int, elem: B)(implicit bf: CanBuildFrom[NodeSeq, B, That]): That

    Appends an element value to this immutable sequence until a given target length is reached .

  127. def partition(p: (Node) ⇒ Boolean): (NodeSeq, NodeSeq)

    Partitions this immutable sequence in two immutable sequences according to a predicate .

  128. def patch(from: Int, that: Seq[Node], replaced: Int): Seq[Node]

    [use case] Produces a new immutable sequence where a slice of elements in this immutable sequence is replaced by another sequence .

  129. def patch[B >: Node, That](from: Int, patch: Seq[B], replaced: Int)(implicit bf: CanBuildFrom[NodeSeq, B, That]): That

    Produces a new immutable sequence where a slice of elements in this immutable sequence is replaced by another sequence .

  130. def prefixLength(p: (Node) ⇒ Boolean): Int

    Returns the length of the longest prefix whose elements all satisfy some predicate .

  131. def product: Int

    [use case] Multiplies up the elements of this collection .

  132. def product[B >: Node](implicit num: Numeric[B]): B

    Multiplies up the elements of this collection .

  133. def projection: SeqView[Node, NodeSeq]

    returns a projection that can be used to call non-strict filter, map, and flatMap methods that build projections of the collection .

  134. def reduceLeft[B >: Node](op: (B, Node) ⇒ B): B

    Applies a binary operator to all elements of this immutable sequence, going left to right .

  135. def reduceLeftOption[B >: Node](op: (B, Node) ⇒ B): Option[B]

    Optionally applies a binary operator to all elements of this immutable sequence, going left to right .

  136. def reduceRight[B >: Node](op: (Node, B) ⇒ B): B

    Applies a binary operator to all elements of this immutable sequence, going right to left .

  137. def reduceRightOption[B >: Node](op: (Node, B) ⇒ B): Option[B]

    Optionally applies a binary operator to all elements of this immutable sequence, going right to left .

  138. def repr: NodeSeq

    The collection of type immutable sequence underlying this TraversableLike object.

  139. def reverse: NodeSeq

    Returns new immutable sequence wih elements in reversed order .

  140. def reverseIterator: Iterator[Node]

    An iterator yielding elements in reversed order .

  141. def reverseMap[B](f: (Node) ⇒ B): Seq[B]

    [use case] Builds a new collection by applying a function to all elements of this immutable sequence and collecting the results in reversed order .

  142. def reverseMap[B, That](f: (Node) ⇒ B)(implicit bf: CanBuildFrom[NodeSeq, B, That]): That

    Builds a new collection by applying a function to all elements of this immutable sequence and collecting the results in reversed order .

  143. def reversed: List[Node]

  144. def reversedElements: Iterator[Node]

  145. def sameElements(that: Iterable[Node]): Boolean

    [use case] Checks if the other iterable collection contains the same elements in the same order as this immutable sequence .

  146. def sameElements[B >: Node](that: Iterable[B]): Boolean

    Checks if the other iterable collection contains the same elements in the same order as this immutable sequence .

  147. def scanLeft[B, That](z: B)(op: (B, Node) ⇒ B)(implicit bf: CanBuildFrom[NodeSeq, B, That]): That

    Produces a collection containing cummulative results of applying the operator going left to right .

  148. def scanRight[B, That](z: B)(op: (Node, B) ⇒ B)(implicit bf: CanBuildFrom[NodeSeq, B, That]): That

    Produces a collection containing cummulative results of applying the operator going right to left .

  149. def segmentLength(p: (Node) ⇒ Boolean, from: Int): Int

    Computes length of longest segment whose elements all satisfy some predicate .

  150. def size: Int

    The size of this immutable sequence, equivalent to length.

  151. def slice(from: Int, until: Int): NodeSeq

    Selects an interval of elements .

  152. def sliding[B >: Node](size: Int, step: Int): Iterator[NodeSeq]

  153. def sliding[B >: Node](size: Int): Iterator[NodeSeq]

    Groups elements in fixed size blocks by passing a "sliding window" over them (as opposed to partitioning them, as is done in grouped .

  154. def sortBy[B](f: (Node) ⇒ B)(implicit ord: Ordering[B]): NodeSeq

    Sorts this immutable .

  155. def sortWith(lt: (Node, Node) ⇒ Boolean): NodeSeq

    Sorts this immutable sequence according to a comparison function .

  156. def sorted[B >: Node](implicit ord: Ordering[B]): NodeSeq

    Sorts this immutable sequence according to an Ordering .

  157. def span(p: (Node) ⇒ Boolean): (NodeSeq, NodeSeq)

    Splits this immutable sequence into a prefix/suffix pair according to a predicate .

  158. def splitAt(n: Int): (NodeSeq, NodeSeq)

    Splits this immutable sequence into two at a given position .

  159. def startsWith[B](that: Seq[B]): Boolean

    Tests whether this immutable sequence starts with the given sequence .

  160. def startsWith[B](that: Seq[B], offset: Int): Boolean

    Tests whether this immutable sequence contains the given sequence at a given index .

  161. def strict_!=(other: Equality): Boolean

  162. def strict_==(other: Equality): Boolean

  163. def stringPrefix: String

    Defines the prefix of this object's toString representation.

  164. def sum: Int

    [use case] Sums up the elements of this collection .

  165. def sum[B >: Node](implicit num: Numeric[B]): B

    Sums up the elements of this collection .

  166. def synchronized[T0](arg0: T0): T0

  167. def tail: NodeSeq

    Selects all elements except the first .

  168. def take(n: Int): NodeSeq

    Selects first n elements.

  169. def takeRight(n: Int): NodeSeq

    Selects last n elements.

  170. def takeWhile(p: (Node) ⇒ Boolean): NodeSeq

    Takes longest prefix of elements that satisfy a predicate .

  171. def text: String

  172. def theSeq: Seq[Node]

  173. def thisCollection: Seq[Node]

    The underlying collection seen as an instance of immutable.Seq.

  174. def toArray: Array[Node]

    [use case] Converts this immutable sequence to an array .

  175. def toArray[B >: Node](implicit arg0: ClassManifest[B]): Array[B]

    Converts this immutable sequence to an array .

  176. def toCollection(repr: NodeSeq): Seq[Node]

    A conversion from collections of type Repr to immutable.Seq objects.

  177. def toIndexedSeq[B >: Node]: IndexedSeq[B]

    Converts this immutable sequence to an indexed sequence .

  178. def toIterable: Iterable[Node]

    Converts this immutable sequence to an iterable collection .

  179. def toIterator: Iterator[Node]

    Returns an Iterator over the elements in this immutable sequence .

  180. def toList: List[Node]

    Converts this immutable sequence to a list .

  181. def toMap[T, U](implicit ev: <:<[Node, (T, U)]): Map[T, U]

    Converts this immutable sequence to a map .

  182. def toSeq: Seq[Node]

    Converts this immutable sequence to a sequence .

  183. def toSet[B >: Node]: Set[B]

    Converts this immutable sequence to a set .

  184. def toStream: Stream[Node]

    Converts this immutable sequence to a stream .

  185. def toString(): String

    Converts this immutable sequence to a string .

  186. def toTraversable: Traversable[Node]

    Converts this immutable sequence to an unspecified Traversable .

  187. def transpose[B](implicit asTraversable: (Node) ⇒ Traversable[B]): Seq[Seq[B]]

    Transposes this immutable sequence of traversable collections into a immutable sequence of immutable sequences .

  188. def union(that: Seq[Node]): Seq[Node]

    [use case] Produces a new sequence which contains all elements of this immutable sequence and also all elements of a given sequence .

  189. def union[B >: Node, That](that: Seq[B])(implicit bf: CanBuildFrom[NodeSeq, B, That]): That

    Produces a new sequence which contains all elements of this immutable sequence and also all elements of a given sequence .

  190. def unzip[A1, A2](implicit asPair: (Node) ⇒ (A1, A2)): (Seq[A1], Seq[A2])

    Converts this immutable sequence of pairs into two collections of the first and second halfs of each pair .

  191. def updated(index: Int, elem: Node): Seq[Node]

    [use case] A copy of this immutable sequence with one single replaced element .

  192. def updated[B >: Node, That](index: Int, elem: B)(implicit bf: CanBuildFrom[NodeSeq, B, That]): That

    A copy of this immutable sequence with one single replaced element .

  193. def view(from: Int, until: Int): SeqView[Node, NodeSeq]

    Creates a non-strict view of a slice of this immutable sequence .

  194. def view: SeqView[Node, NodeSeq]

    Creates a non-strict view of this immutable sequence .

  195. def wait(): Unit

  196. def wait(arg0: Long, arg1: Int): Unit

  197. def wait(arg0: Long): Unit

  198. def withFilter(p: (Node) ⇒ Boolean): WithFilter

    Creates a non-strict filter of this immutable sequence .

  199. def xml_!=(other: Any): Boolean

  200. def xml_==(other: Any): Boolean

  201. def xml_sameElements[A](that: Iterable[A]): Boolean

  202. def zip[B](that: Iterable[B]): Iterable[(Node, B)]

    [use case] Returns a immutable sequence formed from this immutable sequence and another iterable collection by combining corresponding elements in pairs .

  203. def zip[A1 >: Node, B, That](that: Iterable[B])(implicit bf: CanBuildFrom[NodeSeq, (A1, B), That]): That

    Returns a immutable sequence formed from this immutable sequence and another iterable collection by combining corresponding elements in pairs .

  204. def zipAll[B](that: Iterable[B], thisElem: Node, thatElem: B): Iterable[(Node, B)]

    [use case] Returns a immutable sequence formed from this immutable sequence and another iterable collection by combining corresponding elements in pairs .

  205. def zipAll[B, A1 >: Node, That](that: Iterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[NodeSeq, (A1, B), That]): That

    Returns a immutable sequence formed from this immutable sequence and another iterable collection by combining corresponding elements in pairs .

  206. def zipWithIndex: Iterable[(Node, Int)]

    [use case] Zips this immutable sequence with its indices .

  207. def zipWithIndex[A1 >: Node, That](implicit bf: CanBuildFrom[NodeSeq, (A1, Int), That]): That

    Zips this immutable sequence with its indices .