High-arity PAC learning via exchangeability