naive curry impl