rx_core_operator_map 0.2.2

map operator for rx_core
Documentation
# [operator_map]https://github.com/AlexAegis/rx_bevy/tree/master/crates/rx_core_operator_map

[![crates.io](https://img.shields.io/crates/v/rx_core_operator_map.svg)](https://crates.io/crates/rx_core_operator_map)
[![ci](https://github.com/AlexAegis/rx_bevy/actions/workflows/ci.yml/badge.svg)](https://github.com/AlexAegis/rx_bevy/actions/workflows/ci.yml)
[![codecov](https://codecov.io/github/AlexAegis/rx_bevy/graph/badge.svg?token=hUtTGQaWMn&component=rx_core_operator_map)](https://app.codecov.io/github/AlexAegis/rx_bevy?components%5B0%5D=rx_core_operator_map)
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/AlexAegis/rx_bevy?tab=MIT-1-ov-file)

Transform each value with a mapping function.

## See Also

- [MapIntoOperator]https://github.com/AlexAegis/rx_bevy/tree/master/crates/rx_core_operator_map_into -
  Map each value using `Into`.
- [MapErrorOperator]https://github.com/AlexAegis/rx_bevy/tree/master/crates/rx_core_operator_map_error -
  Transform error values into another error value.
- [MapNeverOperator]https://github.com/AlexAegis/rx_bevy/tree/master/crates/rx_core_operator_map_never -
  Re-type `Never` signals into concrete types.
- [MaterializeOperator]https://github.com/AlexAegis/rx_bevy/tree/master/crates/rx_core_operator_materialize -
  Turn next/error/complete into notification values.
- [DematerializeOperator]https://github.com/AlexAegis/rx_bevy/tree/master/crates/rx_core_operator_dematerialize -
  Convert notifications back into real signals.
- [EnumerateOperator]https://github.com/AlexAegis/rx_bevy/tree/master/crates/rx_core_operator_enumerate -
  Attach a running index to each emission.
- [PairwiseOperator]https://github.com/AlexAegis/rx_bevy/tree/master/crates/rx_core_operator_pairwise -
  Emit the previous and current values together.

## Example

```sh
cargo run -p rx_core --example operator_map_example
```

```rs
let _subscription = (1..=5)
    .into_observable()
    .map(|i| i * 2)
    .subscribe(PrintObserver::new("map_operator"));
```

Output:

```txt
map_operator - next: 2
map_operator - next: 4
map_operator - next: 6
map_operator - next: 8
map_operator - next: 10
map_operator - completed
map_operator - unsubscribed
```