1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-09 15:12:26 +08:00

feat: merge some new functions from v2 branch

This commit is contained in:
dudaodong
2024-09-04 10:13:36 +08:00
parent ab2e5a3137
commit c9a8c70ee6
7 changed files with 771 additions and 160 deletions

View File

@@ -569,8 +569,6 @@ func HammingDistance(a, b string) (int, error) {
// Concat uses the strings.Builder to concatenate the input strings.
// - `length` is the expected length of the concatenated string.
// - if you are unsure about the length of the string to be concatenated, please pass 0 or a negative number.
//
// Play: todo
func Concat(length int, str ...string) string {
if len(str) == 0 {
return ""