import { __values } from "tslib";
export var convertToComIds = function (list) {
    return list.map(function (article) { return article.comId; });
};
export var convertToGfxIds = function (list) {
    return list.map(function (article) { return article.gfxId; });
};
export var convertToComIdMap = function (list) {
    var e_1, _a;
    var map = new Map();
    try {
        for (var list_1 = __values(list), list_1_1 = list_1.next(); !list_1_1.done; list_1_1 = list_1.next()) {
            var article = list_1_1.value;
            map.set(article.comId, article);
        }
    }
    catch (e_1_1) { e_1 = { error: e_1_1 }; }
    finally {
        try {
            if (list_1_1 && !list_1_1.done && (_a = list_1.return)) _a.call(list_1);
        }
        finally { if (e_1) throw e_1.error; }
    }
    return map;
};
