public <N extends Node, T> ObjectNode expectArrayMember(String k, Function<N, T> map, Consumer<List<T>> consumer) {
        consumer.accept(expectArrayMember(k).getElementsAs(map));
        return this;
    }
Requires that the given member exists and is an array; then creates a list of values for the array by passing
array element through the mapping function, and passes that list to the consumer.

@param k Key to retrieve.
@param map Mapper that takes each array node and returns a mapped value.
@param consumer Consumer that accepts the collected mapped values.
@param <N> Type of Node to expect in each array element.
@param <T> Type of value returned from the mapper.
@return Returns the node.
smithy-model/src/main/java/software/amazon/smithy/model/node/ObjectNode.java