eq(_:)

Elements.swift:470
func eq(_ index: Int) -> Elements
  • Get the nth matched element as an Elements object.

  • See also {@link #get(int)} to retrieve an Element.

  • @param index the (zero-based) index of the element in the list to retain

  • @return Elements containing only the specified element, or, if that element did not exist, an empty list.