code: public static <T> SortedSet<T> take(SortedSet<T> self, int num) {
          return (SortedSet<T>) take((Iterable<T>) self, num);
      }
docs: Returns the first <code>num</code> elements from the head of this SortedSet.
  <pre class="groovyTestCase">
  def strings = [ 'a', 'b', 'c' ] as SortedSet
  assert strings.take( 0 ) == [] as SortedSet
  assert strings.take( 2 ) == [ 'a', 'b' ] as SortedSet
  assert strings.take( 5 ) == [ 'a', 'b', 'c' ] as SortedSet
  </pre>
  
  @param self the original SortedSet
  @param num  the number of elements to take from this SortedSet
  @return a SortedSet consisting of the first <code>num</code> elements from this List,
  or else all the elements from the SortedSet if it has less then <code>num</code> elements.
  @since 2.4.0