Skip to content
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

ifChanged for tuple - packed parameter #416

Merged
merged 7 commits into from
Sep 25, 2023
Merged

ifChanged for tuple - packed parameter #416

merged 7 commits into from
Sep 25, 2023

Conversation

muukii
Copy link
Collaborator

@muukii muukii commented Sep 9, 2023

let state: Changes<State>

state
  .ifChanged(#keyPathMap(\DemoState.name))
  .do { arg in

}

state
  .ifChanged(#keyPathMap(\DemoState.name, \.count))
  .do { arg in

}

state
  .ifChanged({ ($0.name, $0.count) })
  .do { arg in

  }

@muukii muukii changed the title KeyPathMap ifChanged for tuple - packed parameter Sep 21, 2023
@muukii muukii marked this pull request as ready for review September 22, 2023 09:55
Copy link
Collaborator

@JohnEstropia JohnEstropia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@muukii muukii merged commit e6e4203 into main Sep 25, 2023
1 of 2 checks passed
@muukii muukii deleted the muukii/keypathmap branch September 25, 2023 17:20
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.

None yet

2 participants