Example:
class UserSettings {
init() {
let a = (1...3)
a.publisher
.sink {
print("\($0)")
}
}
}
let user = UserSettings()
Run swift UserSettings.swift
on terminal
Example:
class UserSettings {
init() {
let a = (1...3)
a.publisher
.sink {
print("\($0)")
}
}
}
let user = UserSettings()
Run swift UserSettings.swift
on terminal