Returning a function doesn't seem to work as expected

I added spoiler tags to your post. For what it’s worth, the guide post for this challenge also has some pretty good solutions that I think are worth looking at.

2 Likes