Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Do you see my idiotic mistake?

Someone asked how to add a set of four

numbers, something like 34, 43, 54, and 68. He or she didn't say which language they wanted to use. I was sarcastic, and said to use the 'plus' function supported in all languages. +(34 + 43 + 54 + 68) = 199

so the function should return 199.

What I said was plus(set) = value. Do you see where I went wrong? Explain.

3 Answers

Relevance
  • 7 years ago
    Favorite Answer

    You're trying to assign a value to a function. Maybe you meant value = plus(set).

  • John
    Lv 5
    7 years ago

    Wrong! Functions often return values. A list can be added, for example:

    plus([34, 43, 54, 68]) = 34 + 43 + 54 + 68 . But a set cannot. The set {34, 34, 34, 43, 43, 54, 68} is exactly the same as the set {34, 43, 54, 68}. That was my foolish error, and nobody caught it.

  • Anonymous
    5 years ago

    WRONG GNU/JOHN YOU WERE WRONG AND YOU'LL BE WRONG AGAIN

Still have questions? Get your answers by asking now.