(values ...map[T]E)
| 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 { |
| 2129 | return v != nil |
| 2130 | }) |
| 2131 | } |
| 2132 | |
| 2133 | // takeFirstF takes the first value that returns true |
| 2134 | func takeFirstF[Value any](values []Value, take func(v Value) bool) Value { |
no test coverage detected