4 ms·
They are in the runtime, not in the standard library std lib means you'll have to import a module import Move move(a)
by Kukumber 4y ago
They are in the runtime, not in the standard library
std lib means you'll have to import a module
import Move
move(a)
- favorited 4y agoYou are incorrect. Swift's standard library is named "Swift" – and it is automatically imported. You can refer to something in the standard library implicitly `let x = Array<Int>()` or by specifying the standard library's module `let x = Swift.Array<Swift.Int>()`.
- stephencanon 4y agoNo. The swift stdlib is the API that is available by default without any import statements (consisting of the Swift, _Concurrency, and _StringProcessing modules). The runtime is a separate library that programs do not explicitly interact with; calls into the runtime are implicitly generated by the compiler when necessary to perform tasks like allocation or retain/release.
- Kukumber 4y agoThanks for the information