exram / exram.reactivecollections Goto Github PK
View Code? Open in Web Editor NEWReactive Extensions + Immutable Collections = Reactive Collections !
License: MIT License
Reactive Extensions + Immutable Collections = Reactive Collections !
License: MIT License
Is there a nuget package for this project? If not, could you please create one?
A while back, I created a similar project called MuVaViMo (https://github.com/Yeah69/MuVaViMo) and it works well for simple use cases. However, at that time I wasn't into Reactive Extensions and did create the project without it. Since I discovered Rx I thought that Rx would be an improvement, but hadn't managed to spare enough time to refactor and extend my project.
Consindering the description of your project I think that ExRam.ReactiveCollections is far ahead of my project. Hence, I would like to test your project as replacement for MuVaViMo.
I would love to see an example on how to use the collections. For example how to replace a .Scan<>(ImmutableDictionary<>) with that.
Maybe in the Readme in a second section.
I cannot get the ObservableCollection aspect to work (LINQPad script):
var list = new ListReactiveCollectionSource<int>();
var rc = list.ReactiveCollection;
var oc = rc.ToObservableCollection();
for (var i = 0; i < 10; i++)
{
await Task.Delay(TimeSpan.FromSeconds(0.2));
list.Add(i);
}
list.Count.Dump("ListReactiveCollectionSource.Count");
oc.Count.Dump("ObservableCollection.Count");
The script dumps
ListReactiveCollectionSource.Count
10
ObservableCollection.Count
0
I was expecting the oc.Count
to be updated when the source collection was changed. I see now that a property changed event seems to be emited for the Count property when the source collection changes - it's just that the property does not store any value which seems a bit misleading.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.