static <T> Collector<T, ?, ISeq<T>> toISeq(final int maxSize) {
		return Seqs.toSeq(maxSize, Buffer::toSeq);
	}
Returns a {@code Collector} that accumulates the last {@code n} input
elements into a new {@code ISeq}.

@since 5.0

@param maxSize the maximal size of the collected sequence
@param <T> the type of the input elements
@return a {@code Collector} which collects maximal {@code maxSize} of the
        input elements into an {@code ISeq}, in encounter order
@throws IllegalArgumentException if the {@code maxSize} is negative
jenetics/src/main/java/io/jenetics/util/ISeq.java