N-ary functions