Skip to content

Add a simple ident pattern for for_both!#128

Open
A4-Tacks wants to merge 1 commit intorayon-rs:mainfrom
A4-Tacks:for-both-ident-pattern
Open

Add a simple ident pattern for for_both!#128
A4-Tacks wants to merge 1 commit intorayon-rs:mainfrom
A4-Tacks:for-both-ident-pattern

Conversation

@A4-Tacks
Copy link
Copy Markdown

Example

x.and_then(|it| for_both!(it => it.expr()));
// Similar to
x.and_then(|it| for_both!(it, it => it.expr()));

Example
---

```rust
x.and_then(|it| for_both!(it => it.expr()));
// Similar to
x.and_then(|it| for_both!(it, it => it.expr()));
```
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