Recently, I came across this question asking about collecting a list into sublists in Scheme. The OP received a very comprehensive answer, which was accepted.
However, another answer was posted in a completely different language, Java. In my opinion, this is completely ridiculous for a number of reasons.
The OP explicitly listed language requirements in the question.
Also this has to be a single pass function without any helpers in ISL+.
Racket uses immutable lists, but the Java solution uses mutable ArrayLists, so the algorithm isn't even comparable.
What's more, the OP has proposed a very specific set of requirements that restrict the solution so that an implementation in another language is effectively meaningless.
I asked about this question on the Tavern on the Meta. Here were my musings:
I... don't even know how to handle this. Does this qualify as NAA?
It certainly seems to fit the bill to me.
"Your answer is in another castle."
Followed by Jason C's response:
Lol... it's in another game entirely.
I didn't (and still don't) think this qualifies as an answer. This doesn't help the asker, and it isn't even going to help anyone else, either. So, after that line of reasoning, I decided to flag as "not an answer".
But no, it would seem my flag was disputed by the moderator who reviewed my flag.
So, what is the consensus here? Is this a valid answer that should just be downvoted (which I did)? Or should it be removed? I've stated my opinion, but I'd like to hear any counterarguments.