Creates a keyed lookup from an array of items. Items are indexed by a
composite string key (typically "id:version"), and the returned object
exposes a get(id, version) method that reconstructs the same key
internally.
Use this to build the TClaimLookup required by ArgumentEngine's
constructor from flat arrays (e.g. database query results).
A function that produces the composite key for each item.
Must return a string of the form "id:version" so that the returned
get(id, version) method can reconstruct it.
Creates a keyed lookup from an array of items. Items are indexed by a composite string key (typically
"id:version"), and the returned object exposes aget(id, version)method that reconstructs the same key internally.Use this to build the
TClaimLookuprequired byArgumentEngine's constructor from flat arrays (e.g. database query results).