MCPcopy Create free account
hub / github.com/ReactiveX/RxGo / Map

Method Map

observable_operator.go:1476–1480  ·  view source on GitHub ↗

Map transforms the items emitted by an Observable by applying a function to each item.

(apply Func, opts ...Option)

Source from the content-addressed store, hash-verified

1474
1475// Map transforms the items emitted by an Observable by applying a function to each item.
1476func (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
1482type mapOperator struct {
1483 apply Func

Callers 2

MarshalMethod · 0.95
UnmarshalMethod · 0.95

Calls 1

observableFunction · 0.85

Tested by

no test coverage detected