franciscotln / callbag-range Goto Github PK
View Code? Open in Web Editor NEWCallbag source that synchronously emits a range of numbers from -> to (inclusive)
License: MIT License
Callbag source that synchronously emits a range of numbers from -> to (inclusive)
License: MIT License
Declare got1 in the function scope.
This is a feature request to allow creation of infinite pullable sources by making the upper bound optional, or allowing to pass Infinity
.
Currently, the checkArgs
function ensures that the output will be a finite range.
However, I think that creating an infinite pullable source does not neccessarily create a problem, and might even be useful in some cases.
On one hand, another operator further down the pipeline such as take
can be used to avoid infinite loops.
On the other hand, maybe the source is not pulled in a tight loop, but based on user events, like clicking a button. In such a use case, the source really should be infinite, since the number of user events is possibly inifinite as well.
Of course, another option would be to create a separate source factory, maybe something like infiniteRangeFrom
, but I wanted to open the discussion here first.
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.