In terms of performance, it would be important to highlight in the docs that the returned function shall not do this kind of adaptation for each call.