TypeScript API / contentia/core / ContentiaStream / mapElements
Function: mapElements()
ts
function mapElements<A, D, R, B>(self, f): ContentiaStream<B, D, R>;Transform every element regardless of tag. The mapping must preserve a non-empty mapping per chunk, otherwise use filter.
Type Parameters
| Type Parameter |
|---|
A |
D extends ContentiaDone |
R |
B |
Parameters
| Parameter | Type |
|---|---|
self | ContentiaStream<A, D, R> |
f | (element) => ContentiaElement<B> |
Returns
ContentiaStream<B, D, R>