Skip to content

Conversation

@wackbyte
Copy link

@wackbyte wackbyte commented Apr 3, 2023

I found that it didn't make much sense to have conditional versions of each by-ref pipe method, so I did that for tap instead.

Closes #7.

@ericsampson
Copy link

Nice @wackbyte! <3

@MatthiasvB
Copy link

Very nice! I've just implemented almost exactly the same in my project's code base, where it doesn't really fit into. I'd love to see this merged!

I wonder if it would make sense to also implement versions that take closures receiving a ref to the taped value and return a bool, instead of having to pass the bool directly?

@CosminPerRam
Copy link

Hey, sorry to bump in, any plans for this to be merged any time soon?

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.

add pipe_if method(s)

4 participants