title: Swift - Method chaining
body: <p>I'd like to implement method chaining in my <code>swift</code> code, likely to <code>Alamofire</code> methods. For example, if I have to use my function like below</p>
  
  <pre><code>getListForID(12).Success {
     // Success block
  }. Failure {
     // Failure block
  }
  </code></pre>
  
  <p>How would I create the function <code>getListForID</code>?</p>