public <R> IList<R> mappedList(IFunction<E,R> mapper) {
		int size = size();
    	@SuppressWarnings("unchecked")
		IList<R> mappedList = (IList<R>) doCreate(size);
		for (int i=0; i<size; i++) {
			E e = doGet(i);
			mappedList.add(mapper.apply(e));
    	}
    	return mappedList;
    }
Create a new list by applying the specified mapper to all elements.

@param mapper	mapper function
@return			created list
jphp-runtime/src/php/runtime/memory/support/IList.java