Here’s a fast and clean way to swap the values of two variables without using a temporary variable. var1 = var2 + (var2 = var1, 0) — Charles Johnson (@Green_Footballs) November 9, 2019
Here’s a fast and clean way to swap the values of two variables without using a temporary variable. var1 = var2 + (var2 = var1, 0)
— Charles Johnson (@Green_Footballs) November 9, 2019