We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
针对某些复杂结构的切片, 希望可以定制返回的字符串, 而不是把整个结构都转换为string
The text was updated successfully, but these errors were encountered:
下个版本可以提供JoinFunc相关函数,可以讨论下面哪个函数更合适通用:
func JoinFunc[T any](slice []T, sep T, transform func(T) T) T func JoinFunc[T any](slice []T, sep T, connector func(T, T) T) T
Sorry, something went wrong.
针对某些复杂结构的切片, 希望可以定制返回的字符串, 而不是把整个结构都转换为string 下个版本可以提供JoinFunc相关函数,可以讨论下面哪个函数更合适通用: func JoinFunc[T any](slice []T, sep T, transform func(T) T) T func JoinFunc[T any](slice []T, sep T, connector func(T, T) T) T
更偏向于
func JoinFunc[T any](slice []T, sep string, transform func(T) any) string
@eren1017 rc分支添加了JoinFunc和ConcatBy,下个版本会发布。
No branches or pull requests
针对某些复杂结构的切片, 希望可以定制返回的字符串, 而不是把整个结构都转换为string
The text was updated successfully, but these errors were encountered: