inout parameter swift – Beginner guide
By default parameters in swift function are constant. It means you can not change parameters values from inside of the function in swift. Sometimes we need to get parameters value to be modified from inside the function. So here, inout parameters comes to rescue as inout parameter in swift act like a reference type. Have …