RxSwift.startWith in Combine

Created
Apr 25, 2020 5:52 AM
Tags
Combine.Framework
Keywords

let s = CurrentValueSubject<Int, Never>.init(10)

s.dropFirst()
  .merge(with: Just(1))
  .sink { value in
    print(value)
}

s.send(2)
s.send(3)

1
2
3