code: public AbstractBooleanList partFromTo(int from, int to) {
  	if (size==0) return new BooleanArrayList(0);
  
  	checkRangeFromTo(from, to, size);
  
  	boolean[] part = new boolean[to-from+1];
  	System.arraycopy(elements, from, part, 0, to-from+1);
  	return new BooleanArrayList(part);
  }
docs: Returns a new list of the part of the receiver between <code>from</code>, inclusive, and <code>to</code>, inclusive.
  @param from the index of the first element (inclusive).
  @param to the index of the last element (inclusive).
  @return a new list
  @exception IndexOutOfBoundsException index is out of range (<tt>size()&gt;0 && (from&lt;0 || from&gt;to || to&gt;=size())</tt>).