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