N-ary closures