I have question of func language.
How can I swap value in tuple with index?
in pseudo code,
swap(tuple t, int i, int j) {
var temp = t[i];
t[i] = t[j];
t[j] = temp;
}

Should I always push and pop all the values in tuple?

Jun 20, 2023, 9:06 AM

© 2024 Draquery.com All rights reserved.