code: public void toSelf(def<T> func) {
                  $((List<T>) iterable).forEach(e -> {
                          return Set(func.apply(e));
                  });
          }
docs: change elements in the list
  
  @param func
  function returns an element to replace current element