title: How to get variable name of reference arguments in Swift code?
body: <pre><code>var bankAccountBalance = 3000000.00
  var macbookpro = 191000.00
  var iphone6sPlus = 59000.00
  var newSweetHome = 3500000.00
  var amountRequired = 00.00
  
  func purchaseItem1(currentBalance : Double, itemPrice : Double) -&gt;Double {
      if(itemPrice&lt;=currentBalance)
      {
          print("Purchased item for :\(itemPrice)")
          print("Your current outstanding Account balance is \(currentBalance)")
  
          return currentBalance-itemPrice   
      }
      else {
          amountRequired = itemPrice - currentBalance
  
          print("You dont have enough account balance to purchase this item :( ")
          print("You need \(amountRequired)Rs in your bank")
          return amountRequired
      }
  }
  
  purchaseItem1(currentBalance: bankAccountBalance, itemPrice: macbookpro)
  purchaseItem1(currentBalance: bankAccountBalance, itemPrice: iphone6sPlus)
  purchaseItem1(currentBalance: bankAccountBalance, itemPrice: newSweetHome)
  </code></pre>