The code will never reach the second branch, where we check if the length of the array is less than 1, since the first branch will catch that case
if len(my_array) < 2 {
…
} else if len(my_array) < 1 {
Yes, you’re correct!
The code will never reach the second branch, where we check if the length of the array is less than 1, since the first branch will catch that case
if len(my_array) < 2 {
…
} else if len(my_array) < 1 {
Yes, you’re correct!