Next Previous Up Top Contents Index

3.2 The TABLE-EXTENSIONS module

remove-all-keys!

G.f. method

Summary

Removes all keys from a collection and leaves it empty.

Library

common-extensions

Module

table-extensions

Signature

remove-all-keys! collection => collection 

Arguments

collection
An instance of <mutable-explicit-key-collection>.

Values

collection
An instance of <mutable-explicit-key-collection>.

Description

Modifies collection by removing all its keys and elements, and leaves it empty. This method implements the generic function by making repeated calls to remove-key!.

Note: To empty collections that are not instances of <mutable-explicit-key-collection>, use size-setter.


Common Dylan and Functional Extensions - 31 Mar 00

Next Previous Up Top Contents Index