Skip to content

Instantly share code, notes, and snippets.

@dbrattli
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbrattli/a61e7de3ca5c0269f436 to your computer and use it in GitHub Desktop.
Save dbrattli/a61e7de3ca5c0269f436 to your computer and use it in GitHub Desktop.
Python help for RxPY flat_map_latest
>>> from rx import Observable
>>> help(Observable.flat_map_latest)
@dbrattli
Copy link
Author

Help on method select_switch in module rx.linq.observable.selectswitch:

select_switch(self, selector) unbound rx.observable.Observable method
Projects each element of an observable sequence into a new sequence
of observable sequences by incorporating the element's index and then
transforms an observable sequence of observable sequences into an
observable sequence producing values only from the most recent
observable sequence.

Keyword arguments:
selector -- {Function} A transform function to apply to each source
    element; the second parameter of the function represents the index
    of the source element.

Returns an observable {Observable} sequence whose elements are the
result of invoking the transform function on each element of source
producing an Observable of Observable sequences and that at any point in
time produces the elements of the most recent inner observable sequence
that has been received.

@anoopvalluthadam
Copy link

Cool man, Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment