-7

The title is Check if every other element in list is even?, and the body contains a longer version of that:

I [...] want to make a function that checks if every other (all positive indexes inc 0) integer in a list is even.

It literally doesn't make any logical sense to me. It reads every other, but no other element of the list is mentioned before that point of the sentence.

On the other hand, a later part of the question reads (my emphasis)

However this seems to always give true as long as the last even position in the list is even

which makes me think that every other was meant to be every other odd. And this makes me think that I should simply edit the question.

However, since both answers seem to address the question just like it reads every odd, even if I haven't applied the correction yet, I wonder if I just ignore this math-specific use of the word other in English?

Furthermore, even if I am correct, then also the part in the parenthesis (all positive indexes inc 0) needs a correction, as it should be all positive odd indexes inc 0.

17
  • 16
    Have you tried to ask the OP for clarification in a comment? Commented Oct 18, 2020 at 7:41
  • @BSMP, ok, got your point.
    – Enlico
    Commented Oct 18, 2020 at 8:07
  • 3
    @BSMP Zero is even.
    – PM 2Ring
    Commented Oct 18, 2020 at 8:18
  • 2
    @PM2Ring, I agree, but I think BSMP's main point is that on 0-based indexing, indexes 0, 2, 4, 6, ... are actually the 1st, 3rd, 5th, 7th, ... So it's confusing to address them by parity.
    – Enlico
    Commented Oct 18, 2020 at 8:25
  • 14
    If you find a question to be completely unclear, such that you cannot make heads or tails of it in an edit, then you should vote to close the question as unclear.
    – Cody Gray Mod
    Commented Oct 18, 2020 at 8:29
  • @Enrico Ah, very good point!
    – PM 2Ring
    Commented Oct 18, 2020 at 8:29
  • @CodyGray, come on, other two users have answered it, and the OP also thanked one of them. I'm just asking if that way using other is appropriate in English-math or not.
    – Enlico
    Commented Oct 18, 2020 at 8:31
  • 10
    I don't know why the fact that two other users have answered it is at all relevant. Other people's actions shouldn't constrain yours. If you think the question is fundamentally unclear, then either (A) you do not have the domain knowledge to understand the question (which is possible, but if you thought this was the case, you wouldn't have come to ask about it on Meta), or (B) you should be voting to close the question as unclear. The vote doesn't mean "I think it might be unclear to someone else". It means, "This question is fundamentally unclear to me, and I cannot fix it."
    – Cody Gray Mod
    Commented Oct 18, 2020 at 9:16
  • 3
    I disagree on the relevance of the other answers, @CodyGray. I'm not a native speaker, and looking at two answers which illuminate me on what probably the question means is enough for me to make the hypothesis that maybe there's some gap in my English, and this question here on meta is to understand if this is the case.
    – Enlico
    Commented Oct 18, 2020 at 9:20
  • 1
    @CodyGray “I don't know why the fact that two other users have answered it is at all relevant” — The fact that they (mis-)understood the question in the same way is relevant. Commented Oct 18, 2020 at 9:21
  • 2
  • 6
    "Every other" means alternating elements in a sequence.
    – khelwood
    Commented Oct 18, 2020 at 14:27
  • 2
    it is a good question and the solution is quite easy to realize in almst every programming language, nthing is unclear at all,
    – nbk
    Commented Oct 18, 2020 at 15:21
  • 2
    @khelwood, thank you very much, I guess yours is the true answer to my question, so feel free to write it in an answer and I'll accept it; or I'll do it in a few days. I absolutely did not know that. Luckily, my edit doesn't change the intended meaning of the original question.
    – Enlico
    Commented Oct 18, 2020 at 15:30
  • 1
    Yeah, @nkb. But to me it sounded meaningless, because I did not know what khelwood made me aware of.
    – Enlico
    Commented Oct 18, 2020 at 15:40

2 Answers 2

10

"Every other" means alternating elements of a sequence.

1
  • Red, blue, red, blue, red, blue, red, blue. Every other element is blue.
    – Gimby
    Commented Oct 20, 2020 at 8:41
6

For me the question is poorly worded, but it is an interesting question on why some piece of code is not working as wanted. However the question can be understood and two people have answered it. I do not know Haskell, but have used another functional language so and I can see why the code fails and why the two answers work.

The idea of Stack Overflow is to make a repository of good questions with good answers. If you feel a question can be improved then feel free to edit it to make it better. Not knowing Haskell means I will not edit it in case I misunderstand some Haskell details. If you do not want to edit it then consider adding a comments suggesting improvements that the originator of the question, or another topic expert, can make.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .