I am studying swift.
I'm asking you a question because it's weird to use the for statement to practice the book example with playground.
for var i = 0; i < 10; i++ {
print("\(i) execute")
}
Result value is
9 execute
That's what it says.
The result I expected was
0 execute
.
.
.
9 execute
It was.
Is something different on Playground?
This is my Playground screen.
swift for swift-playground
Click on the round Show Result and you will see the following results.
0 execute
.
.
.
9 execute
In conclusion, playground is no different.
[Self-answer]
Press the right mouse button at the part where the result is shown
The menus Latest Value
and Value History
appear.
There must be a separate option.
© 2024 OneMinuteCode. All rights reserved.