@effect-ts/system
Version:
Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.
15 lines (12 loc) • 332 B
text/typescript
// ets_tracing: off
import type * as O from "../../../../Option/index.js"
import type * as C from "../core.js"
import * as Collect from "./collect.js"
/**
* Filters any `None` values.
*/
export function collectSome<R, E, A>(
self: C.Stream<R, E, O.Option<A>>
): C.Stream<R, E, A> {
return Collect.collect_(self, (a) => a)
}