var entryStream = Rx.Observable.from(['', '/draft']).zip(ajaxErrors, function(a) {return a}).flatMapLatest(function(extraPath) { return $.getJSONAsObservable("/trail/rest/blog/" + entryId + extraPath).doAction(_.identity, function() { $(document).trigger("entry-request-failed")}) }).retry(1).map(ƒ.attrF("data")).take(1).publish()
var entries = pager(pages.map(function() { return url })).flatMap(function(url) { return $.getJSONAsObservable(url) })