Map transforms the items emitted by an Observable by applying a function to each item.
(apply Func, opts ...Option)
| 1474 | |
| 1475 | // Map transforms the items emitted by an Observable by applying a function to each item. |
| 1476 | func (o *ObservableImpl) Map(apply Func, opts ...Option) Observable { |
| 1477 | return observable(o.parent, o, func() operator { |
| 1478 | return &mapOperator{apply: apply} |
| 1479 | }, false, true, opts...) |
| 1480 | } |
| 1481 | |
| 1482 | type mapOperator struct { |
| 1483 | apply Func |
no test coverage detected