it("throws if `compare` is not a function", () => {
        expect(() => from([]).max(identity, 1)).toThrowError("`compare` should be a function");
    });