repeater icon indicating copy to clipboard operation
repeater copied to clipboard

obfuscate observable example with functional programming

Open jedwards1211 opened this issue 5 years ago • 1 comments

this is sort of a joke but I just wanted to demonstrate that the code can be shortened, assuming there are no extra arguments in observables I don't know about.

And illustrate how it's almost exactly the same API as the Observable constructor but with an async function.

jedwards1211 avatar Dec 26 '19 07:12 jedwards1211

Hahahaha if you make the observable.subscribe call a one-liner (maybe shorten subscription to sub), I will merge this in. Could be nice to show the flexibility of repeaters, how you can name the push and stop functions whatever you want.

However, the README is duplicated in the nested package README (https://github.com/repeaterjs/repeater/blob/master/packages/repeater/README.md) and the docs (https://github.com/repeaterjs/repeater/blob/master/docs/01_quickstart.md). Also I’d have to do a docs site deploy... mhmhghgh

And illustrate how it's almost exactly the same API as the Observable constructor but with an async function.

I will never acknowledge this. 🕵️‍♂️

brainkim avatar Dec 26 '19 07:12 brainkim