Implement curry functions detection