Пример #1
1
 @Override
 public Array<T> leftPadTo(int length, T element) {
   final int actualLength = length();
   if (length <= actualLength) {
     return this;
   } else {
     return prependAll(Iterator.continually(element).take(length - actualLength));
   }
 }