title: Swift 3: How to write Equatable func
body: <p>I am trying to use struct as my key for dictionary.</p>
  
  <p>Code works for <code>swift 2</code>, however not for <code>swift 3</code> as in the picture link.</p>
  
  <p><strong>Equatable Code:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/YZepl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YZepl.png" alt="Equatable Code"></a></p>