const listToArrayForward = function (list) {
        const array = [];

        const it = list.begin();