title: Angular2 Observables map and subscribe at once?
body: <p>I got a function that subscribes to an observable like this:</p>
  
  <pre><code>public whatever(): Observable&lt;Response&gt; {
    this.someService.functionReturnsObservable(params)
      .subscribe(
        success =&gt; {
          /* stuff to be done after observable's next */
        }
      );
  
    return this.someService.functionReturnsObservable(params)
      .maps((response: Response) =&gt; response));
  }
  </code></pre>
  
  <p>This way I call the function twice. I tried something like</p>
  
  <pre><code>public whatever(): Observable&lt;Response&gt; {
    return this.someService.functionReturnsObservable(params)
      .map((response: Response) =&gt; { 
        /* whatever I put here, even console.log(smthg) does not work */
      });
  }
  </code></pre>