(ord bool, in <-chan Try[A], n int, f func(A) (B, error))
| 9 | ) |
| 10 | |
| 11 | func universalMap[A, B any](ord bool, in <-chan Try[A], n int, f func(A) (B, error)) <-chan Try[B] { |
| 12 | if ord { |
| 13 | return OrderedMap(in, n, f) |
| 14 | } |
| 15 | return Map(in, n, f) |
| 16 | } |
| 17 | |
| 18 | func TestMap(t *testing.T) { |
| 19 | th.TestBothOrderings(t, func(t *testing.T, ord bool) { |
no test coverage detected