True if every item in a sequence matches the given predicate
function every(predicate) {
    return it => {
        let i = 0;
        for (const item of it) {
            if (!predicate(item, i)) {
                return false;
            }
            i = i + 1;
        }
        return true;
    };
}