table-key-present?

Name

table-key-present? -- Checks a table for the presence of a given key

Type: generic

Synopsis

table-key-present?( table key, boolean);

Arguments

table

An instance of <table> to be searched

key

The key for which to search. Must be an instance of the key class appropriate for the given table.

Return Values

boolean

#t if the key is present, #f otherwise.

Description

This generic function on tables is used to check for the presence of a given key in a table. This function is similar to table-lookup, but it returns a boolean indicator rather than the value associated with the key. Hence, it is of primary use for tables that may contain #f as a value.