函数有两个返回值

  1. val (color, backgrond) = if (isRed) {
  2. mRed to mRedBackground
  3. } else {
  4. mGreen to mGreenBackground
  5. }