Skip to content

feat: Implement CoalesceOrEmptySlice Function#542

Merged
samber merged 1 commit intosamber:masterfrom
chg1f:feature/CoalesceOrEmptySlice
Jan 25, 2025
Merged

feat: Implement CoalesceOrEmptySlice Function#542
samber merged 1 commit intosamber:masterfrom
chg1f:feature/CoalesceOrEmptySlice

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.

2 participants