# Function: stream()

> > **stream**\<`T`\>(`g`): [`Stream`](../classes/Stream.md)\<`T`\>

# Function: stream()

> **stream**\<`T`\>(`g`): [`Stream`](../classes/Stream.md)\<`T`\>

Defined in: [packages/fast-check/src/stream/Stream.ts:248](https://github.com/dubzzz/fast-check/blob/4663db899d411b24434189b8e560b5ecefc93f23/packages/fast-check/src/stream/Stream.ts#L248)

Create a Stream based on `g`

## Type Parameters

| Type Parameter |
| ------ |
| `T` |

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `g` | `IterableIterator`\<`T`\> | Underlying data of the Stream |

## Returns

[`Stream`](../classes/Stream.md)\<`T`\>

## Remarks

Since 0.0.7
