public final <OtherType> List<OtherType> mapToList(Function<Type, OtherType> mapper) {
        return items.stream().map(mapper).toList();
    }
Returns the items in this as an immutable list after mapping with the given function.
vespajlib/src/main/java/com/yahoo/collections/AbstractFilteringList.java