title: class level or struct level method in swift like static method in Java?
body: <p>Is there a way to add method at class level or struct level in swift?</p>
  
  <pre><code>struct Card {
      var rank: Rank
      var suit: Suit
      func simpleDescription() -&gt; String {
          return "The \(rank.simpleDescription()) of \(suit.simpleDescription())"
      }
  }
  </code></pre>
  
  <p>Excerpt From: Apple Inc. “The Swift Programming Language.” iBooks. <a href="https://itun.es/us/jEUH0.l" rel="noreferrer">https://itun.es/us/jEUH0.l</a></p>
  
  <p>Now if you wanted to add a method that creates a full deck of cards, what would be the best way to accomplish it?</p>