import { Subscribable } from '../core/types.h' import { EMPTY } from './empty' import { slice } from './slice' export const take = (count: number, stream: Subscribable) => { if (count === 0) { return EMPTY } return slice(0, count, stream) }