ColdC: Function/Method Reference: dict_contains()


INTEGER dict_contains(DICTIONARY dict, ANY key)

This function returns 1 if there is an association in dict with the key key, or 0 otherwise.

Examples:

dict_contains(#[["foo", "bar"]], "foo")
=> 1

dict_contains(#[["foo", "bar"]], "bar")
=> 0


Last Modified on 24 Mar 1996
Copyright © 1995, 1996, Brandon Gillespie