static_hash_maps: allow elements to be indefinite by looking them up in a function rather than an array