chickadee » lookup-table » dict-Idempotent-ref!

(dict-Idempotent-ref! DICT KEY FUNC [DEFAULT #f]) => *procedure

Should a value for KEY exist in DICT it is returned. Otherwise FUNC is invoked on DEFAULT. Any result other than DEFAULT is the value for the KEY and that value is returned. Otherwise returns DEFAULT.