# Lettable Operators vs Legacy Methods

Les opérateurs de type fonction sont appelés "**lettable operators**". Ils ont été introduit avec la version RxJS 5.5.

Avant les "lettable operators", les opérateurs étaient de méthodes de la classe `Observable` qu'il fallait ajouter par "polyfill" pour éviter de surcharger le code généré par l'application.

```typescript
import 'rxjs/add/operators/map';

data$.map(value => value * 2);
```

L'approche à base de méthodes et de "polyfill" a été retiré depuis RxJS 6.0 *(sorti quasi simultanément que Angular 6)*.

Si vous avez du "code legacy", vous pouvez utiliser le module **`rxjs-compat`** <https://github.com/ReactiveX/rxjs/tree/master/compat> en attendant de procéder à la migration.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guide-angular.wishtack.io/angular/observables/operateurs/lettable-operators-vs-legacy-methods.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
