Skip to content

Commit

Permalink
Update slice.go
Browse files Browse the repository at this point in the history
  • Loading branch information
samber authored Dec 19, 2023
1 parent d8598ea commit d1c7f3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slice.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func Flatten[T any](collection [][]T) []T {
}

// Interleave round-robin alternating input slices and sequentially appending value at index into result
// Play: https://go.dev/play/p/DDhlwrShbwe
// Play: https://go.dev/play/p/-RJkTLQEDVt
func Interleave[T any](collections ...[]T) []T {
if len(collections) == 0 {
return []T{}
Expand Down

0 comments on commit d1c7f3a

Please sign in to comment.