code: public static <T> List<T> init(List<T> self) {
          return (List<T>) init((Iterable<T>) self);
      }
docs: Returns the items from the List excluding the last item. Leaves the original List unchanged.
  <pre class="groovyTestCase">
  def list = [3, 4, 2]
  assert list.init() == [3, 4]
  assert list == [3, 4, 2]
  </pre>
  
  @param self a List
  @return a List without its last element
  @throws NoSuchElementException if the List is empty and you try to access init()
  @since 2.4.0