Comments (5)
Actually not sure if the Router
solves the problem I am trying to solve.
I have a Stream, sa: Stream<Set<number>>
, and I want to construct a stream sb: Stream<Unit>
which is triggered when the Set contains a certain number. This can not be done directly with Router right? I'd need to implement something else.
I'll stick with let sb = sa.filter(set => set.contains(key)).mapTo(Unit.UNIT);
for a while.
from sodium-typescript.
Actually Operational.split
can be used with Router
here to solve my problem.
from sodium-typescript.
Sounds like that would work. It would certainly be possible to generalize router to use a more generalized operation than equality, but it sounds like you have it sorted out.
from sodium-typescript.
I'll have a think about it for a while 1st. Let me know if you have any ideas of how to make it more generalized too.
Because it would be nicer in if it was in a single transaction.
from sodium-typescript.
maybe if the selector
param returned multiple keys rather than a single key, then it could work.
from sodium-typescript.
Related Issues (20)
- Memory bounce in switchC/switchS HOT 2
- Overworked Cell::lift(s) HOT 9
- Nicer crash recovery
- Cell::liftArray optimization HOT 1
- Add sodium.Transaction.post() ?
- restrict "send() was invoked before listeners were registered" to sinks?
- Seems npm does have postinstall scripts. HOT 2
- collectCycles() is being called many times in a single transaction (Performance issue) HOT 2
- include Cell.calm / Cell.partialCalm / Cell.calmRefEq / ... ? HOT 2
- Should Operational.updates() keep its inner cell alive for the lifetime of the result? HOT 2
- Priority queue re-sorts happens too often [Performance] HOT 7
- Verifying integrity of Vertex graph HOT 2
- The rank feels wrong HOT 25
- Timer.spec.ts test has a vertex/node cycle in it.
- missing handy methods
- Cell::setStream performance HOT 7
- TimerSystem can be improved
- Possible rank optimization
- TypeError: Cannot read property 'requestRegen' of null HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sodium-typescript.