Example (Apple Official)
let prefixValues = [0, 1, 255]
let dataElements = (0...10)
let cancellable = dataElements.publisher
.prepend(prefixValues)
.sink { print("\($0)", terminator: " ") }
//0 1 255 0 1 2 3 4 5 6 7 8 9 10
Example (Apple Official)
let prefixValues = [0, 1, 255]
let dataElements = (0...10)
let cancellable = dataElements.publisher
.prepend(prefixValues)
.sink { print("\($0)", terminator: " ") }
//0 1 255 0 1 2 3 4 5 6 7 8 9 10