Giter Site home page Giter Site logo

Implement groupBy about rx HOT 7 CLOSED

lempiji avatar lempiji commented on May 14, 2024
Implement groupBy

from rx.

Comments (7)

lempiji avatar lempiji commented on May 14, 2024

thanks for request😃

The merge overload and groupBy are missing in rx. I will think how to implement it.

Are you using fswatch package? It might be enough to use this.

To make an own Obsevable and publish value, examples around here may be helpful.
https://github.com/lempiji/rx/blob/master/examples/http-client/source/app.d

from rx.

gizmomogwai avatar gizmomogwai commented on May 14, 2024

Thanks for the pointer to the http-client app.
I looked also a little into the java rx implementation which looks rather complicated for all the merge overloads ... actually my usecase would need an overload for a stream of observables as well. merge at the moment only has an overload for two observables?

from rx.

lempiji avatar lempiji commented on May 14, 2024

Yes. I only implement what merges two Observables.

I thought about an easy implementation for streamed Observables.
Create a Subject, make grouped source Observables, subscribe to source and redirect to the Subject.

Perhaps the merge will also be this way.
I will try on the weekend.

from rx.

lempiji avatar lempiji commented on May 14, 2024

I implemented groupBy. Merge for streams too.
I also wrote an example, is it as expected?

https://github.com/lempiji/rx/blob/bc030718513392529f3f8add165b8acff2217e6b/examples/rx-fswatch/source/app.d

from rx.

gizmomogwai avatar gizmomogwai commented on May 14, 2024

your a genius! this looks great! i will give it a try!!!

from rx.

gizmomogwai avatar gizmomogwai commented on May 14, 2024

Sorry about the wrong comments (i deleted them) ... works flawless !!!
Thanks a lot!

from rx.

lempiji avatar lempiji commented on May 14, 2024

😃

from rx.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.