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

feat: Implement CoalesceOrEmptySlice Function #542

Merged
merged 1 commit into from
Jan 25, 2025

Conversation

chg1f
Copy link
Contributor

@chg1f chg1f commented Oct 16, 2024

Hello, this pr Implement CoalesceOrEmptySlice Function;

coalesce function for slices, ensure return not nil slice.

@chg1f chg1f marked this pull request as draft October 23, 2024 02:29
@chg1f chg1f marked this pull request as ready for review October 23, 2024 02:29
@samber
Copy link
Owner

samber commented Jan 25, 2025

Thanks for the contrib.

I'm going to rename this helper to CoalesceSliceOrEmpty and add:

  • CoalesceSlice
  • CoalesceMap
  • CoalesceMapOrEmpty

@samber samber force-pushed the feature/CoalesceOrEmptySlice branch from 2e36141 to 8795ac7 Compare January 25, 2025 15:18
@samber samber merged commit 8795ac7 into samber:master Jan 25, 2025
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