xxxxxx@freenetproject.org wrote:
> This is missing from the spec. A functional version of clear isn't
> necessary, as it would be equivalent to constructing a new, empty
> collection.
The result is equivalent but the invocation isn't: constructing a new
collection requires knowledge of the collection type; calling clear
doesn't. For that reason, and for sake of uniformity, there should be a
functional version of clear.
Matthias.