The comments make it clear that the language author has not yet learned generics by this exercise.
> We rewrote it in Rust so you have to upvote it
I'm pretty sure they didn't go through all the trouble of rewriting it in Rust to get some internet forum points!
Maybe its just you who doesnt like them?
> ...
> it stops being fun.
Right. Sorry. We apologise. We didn't know the joke police was monitoring.
Your question was "Is it wrong, though?" The answer is "Yes"