Open jmagaram opened 3 years ago
Hi @jmagaram and thank you for your interest towards the project. That's an interesting idea. Currently it's not possible to do that with fromfrom. I think that should be quite easy to implement using a generator function:
function* range(start: number, end: number) {
while (start < end) {
yield start;
start++;
}
}
then you could use that with fromfrom
from(range(5, 10))
.map(i => i * 2)
.toArray()
I've come from C# and like your project. Couldn't find much out there (in TypeScript) like it - mystified by that! Would love to see just a simple
fromRange(start:number, end:number)
and maybefromInfinite()
to get me started. Or is there already some way to do that?