I want to get the loop times info in playground. But it seems to only display the latest result for a loop on the right side. Do I miss anything? Xcode 15.0.1
import Cocoa
for i in 1...5{
print("\(i)")
}
EDIT:
Sorry for my poor English. I actually want to know how to switch the "5\n" to "(5 times)". I remember it used to display like that in the past. However, I can only switch in between "latest value" and "value history" for now. Is it changed because of the Xcode version. Or I'm looking in the wrong place

I don't know why you are importing
Cocoa. With importingFoundationframework it works completely fine:I see that you are not checking the output section in the bottom of the screen. Check my screenshot: