Let say I have a function which returns IObservable<T> and this function needs initial state.
let myObservable (initialState: T) :IObservable<T> = (...)
but I can get initial state only from another observable which emits only once
let initializeObservable: IObservable<S> = (...)
how can I combine these two to get IObservable<T>?
let resultObservable = initializeObservable |>
Observable.map (fun initialState -> myObservable initialState)
Currently resultObservable is IObservable<IObservable<T>> but I would like it to be IObservable<T> and emit values from myObservable after initial state is ready.