1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

You cannot operator == for tuple.

1 == 2 //  false

(1, 2) == (1, 3) // Could not find an overload for '==' that accepts the supplied arguments

However you can write same code in Scala.


1 == 2 // false

(1, 2) == (1, 3) // false

Though, the most use case of tuple is returning multiple values from some function. I think if I can compare tuple data in more simple way, it will be nice feature of Swift.

1
1
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?