Skip to content

Instantly share code, notes, and snippets.

Steve McGuire steveorsomethin

  • Free Agent
  • Boston, MA
Block or report user

Report or block steveorsomethin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Prepack Observable
function Observable(subscribe) {
this._subscribe = subscribe;
}
const of = (v) => new Observable(observer => {
return observer.next(v);
});
Observable.prototype = {
map(f) {
View gist:c456eef50c37d7c6cbd2
use std::num::{One};
trait Observer<A> {
fn next(&mut self, val: A);
}
trait Observable<A> {
fn subscribe<'r, N: Observer<A>>(&mut self, observer: N);
#[inline]
You can’t perform that action at this time.