too much arguments error in curry

write example how to use curry as decorator