adds 'core/last' emitting the last event. Useful for reduce/fold too.#673
adds 'core/last' emitting the last event. Useful for reduce/fold too.#673semmel wants to merge 3 commits intomostjs:masterfrom
Conversation
adds (helper function) 'prelude/flow' to support function pipelines (in tests)
|
I guess, Circle CI fails because one needs to |
|
We'll have to look into updating the build (hasn't been a need for a long time), but for this operator specifically, there's already a 3rd party library for this - |
For the time being one could mention
That is awesome, but at the same time so sad that it seems I wasted all the time for this PR 😭 Nevermind, I know now about the implementation. That enables me to attempt Fantasy-Land support. import {map , chain} from 'ramda'
import {map as map_o, chain as chain_o} from '@most/core' |
|
We do really appreciate the effort, and apologize if it feels like a waste of your time. If you'd we so kind to separate the CI fixes, I'd most graciously accept those. If you're looking for method extensions to Stream, you might find this useful for inspiration at least https://github.com/mostjs/x-fluent. We've avoided fluent APIs in core because they can't be removed during tree-shaking, but they definitely are convenient |
|
Hi @semmel. I'll echo @TylorS's apology for the effort you put into your
Using |
I sometimes need the last value in a stream or
reduceit to the last value ofscanI could not find a way to do that with the existing API.
What do you think?
Also adds (helper function)
prelude/flowto support function pipelines (in tests)