Skip to content

feat: Implement CoalesceOrEmptySlice Function - #542

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

samber merged 1 commit into
samber:masterfrom
chg1f:feature/CoalesceOrEmptySlice

Conversation

@chg1f

@chg1f chg1f commented Oct 16, 2024

Copy link
Copy Markdown
Contributor

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

samber commented Jan 25, 2025

Copy link
Copy Markdown
Owner

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