export function associateWith(array, selector) {
    const ret = {};
    for (const element of array) {
        const selectedValue = selector(element);
        ret[element] = selectedValue;
    }
    return ret;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzb2NpYXRlX3dpdGguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJhc3NvY2lhdGVfd2l0aC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF3QkEsTUFBTSxVQUFVLGFBQWEsQ0FDM0IsS0FBd0IsRUFDeEIsUUFBNEI7SUFFNUIsTUFBTSxHQUFHLEdBQXNCLEVBQUUsQ0FBQztJQUVsQyxLQUFLLE1BQU0sT0FBTyxJQUFJLEtBQUssRUFBRTtRQUMzQixNQUFNLGFBQWEsR0FBRyxRQUFRLENBQUMsT0FBTyxDQUFDLENBQUM7UUFFeEMsR0FBRyxDQUFDLE9BQU8sQ0FBQyxHQUFHLGFBQWEsQ0FBQztLQUM5QjtJQUVELE9BQU8sR0FBRyxDQUFDO0FBQ2IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8vIENvcHlyaWdodCAyMDE4LTIwMjEgdGhlIERlbm8gYXV0aG9ycy4gQWxsIHJpZ2h0cyByZXNlcnZlZC4gTUlUIGxpY2Vuc2UuXG4vLyBUaGlzIG1vZHVsZSBpcyBicm93c2VyIGNvbXBhdGlibGUuXG5cbi8qKlxuICogQnVpbGRzIGEgbmV3IFJlY29yZCB1c2luZyB0aGUgZ2l2ZW4gYXJyYXkgYXMga2V5cyBhbmQgY2hvb3NpbmcgYSB2YWx1ZSBmb3IgZWFjaFxuICoga2V5IHVzaW5nIHRoZSBnaXZlbiBzZWxlY3Rvci4gSWYgYW55IG9mIHR3byBwYWlycyB3b3VsZCBoYXZlIHRoZSBzYW1lIHZhbHVlXG4gKiB0aGUgbGF0ZXN0IG9uIHdpbGwgYmUgdXNlZCAob3ZlcnJpZGluZyB0aGUgb25lcyBiZWZvcmUgaXQpLlxuICp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