You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 31, 2023. It is now read-only.
This will return an array of all the locations at which person was convicted, and if they were convicted for multiple offenses at the same location, the location will appear in the array multiple times.
Should it just return the set of locations (ie deduplicate the list)? Or should that be left to the calling code? Are there use cases which would want the complete list (which is in the same order as the convictions)? Or (my least favourite idea) should remove-duplicates be an option to be passed to the resolve method?
The text was updated successfully, but these errors were encountered:
For example: in the Criminal Characters data, getting a list of sentencing locations for a person with this:
const locations = crate.resolve(person, [ { property: "conviction" }, { property: "location" } ])
This will return an array of all the locations at which
person
was convicted, and if they were convicted for multiple offenses at the same location, the location will appear in the array multiple times.Should it just return the set of locations (ie deduplicate the list)? Or should that be left to the calling code? Are there use cases which would want the complete list (which is in the same order as the convictions)? Or (my least favourite idea) should remove-duplicates be an option to be passed to the resolve method?
The text was updated successfully, but these errors were encountered: