beicon icon indicating copy to clipboard operation
beicon copied to clipboard

Add operators start-with and end-with

Open mdbenito opened this issue 8 months ago • 0 comments

This PR adds support for startWith and endWith.

The implementation allows for an arbitrary number of values to be passed as args, as in

(->> (rx/from [3 4])
        (rx/start-with 1 2))

to produce [1 2 3 4]

I thought this to be more convenient than always taking an array of values, since the typical use case is (start-with val ob) with just one value.

mdbenito avatar Jun 21 '25 19:06 mdbenito