swift-playground tag

2 questions


2 answers
67 views
0
The value of the result of the for repeat statement in Playground during swift study is strange.

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 valu...

2 years ago

1 answers
68 views
0
swift example -- operational error

var x = 10for index in 1 ... 20 { let y = index * x--}I'm studying using iPad Pro's Playground.I played the same chord as the exampleUnary operator '--' cannot be applied to operands of type '@lvalueI...

2 years ago

© 2024 OneMinuteCode. All rights reserved.