implemented bind for n-ary functions + example