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)")
}
I have a screenshot:
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)")
}
I have a screenshot:
The view on the right side only displays the current or the latest result of an expression. To see the output of a print statement you have to open the console in Xcode.
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
for i in 1...5{
print("\(i) times")
}