REQUEST: Allow Compact() to accept any type.
If the is-empty determination uses reflect.ValueOf(&x).Elem().IsZero() then that function can usefully work on any type, not just comparables.
Hey, I was going through this issue and it looks interesting.
I’m new to contributing here, but I’d like to give it a try if it makes sense to add.
It’s super simple; they already have an is-zero check via reflect elsewhere in the same file.On Aug 23, 2025, at 06:36, Anurag Ojha @.***> wrote:intojhanurag left a comment (samber/lo#660) Hey, I was going through this issue and it looks interesting. I’m new to contributing here, but I’d like to give it a try if it makes sense to add.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>