Closed rpuxa closed 4 years ago
Great catch! I love it. Could you also provide Kotlin version?
Great catch! I love it. Could you also provide Kotlin version?
What do you mean?
Is this 1.3.40?
Is this 1.3.40?
It works at 1.3.40 and 1.3.41 versions. I've tried
1) [I@3f99bd52 [1, 2, 3] kotlin.Unit 2) 42 java.util.ArrayList@4481f34a [I@448139f0 3) kotlin.Unit [1, 2, 3] [I@448139f0 4) Function0 java.util.ArrayList@4481f34a [I@448139f0
5) Function0 [1, 2, 3] [I@448139f0
Correct answer: first. Because { 42 } its a second argument of IntArray constructor