of operator for basic-streams
npm install @basic-streams/of
``typescriptof(value: T): Stream`
typescriptof(value: T): Stream
Creates a stream containing the given value.
.
`jsimport of from "@basic-streams/of"
jsimport of from "@basic-streams/of"
const stream = of(1)
stream(x => { console.log(x)})
// > 1``