takeFirstSlice implements takeFirst for []any. []any is not a comparable type.
(values ...[]T)
| 2119 | // takeFirstSlice implements takeFirst for []any. |
| 2120 | // []any is not a comparable type. |
| 2121 | func takeFirstSlice[T any](values ...[]T) []T { |
| 2122 | return takeFirstF(values, func(v []T) bool { |
| 2123 | return len(v) != 0 |
| 2124 | }) |
| 2125 | } |
| 2126 | |
| 2127 | func takeFirstMap[T, E comparable](values ...map[T]E) map[T]E { |
| 2128 | return takeFirstF(values, func(v map[T]E) bool { |
no test coverage detected