Skip to content

Add operators start-with and end-with #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mdbenito
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant