MCPcopy Create free account
hub / github.com/Effect-TS/effect / isNonEmpty

Function isNonEmpty

packages/effect/src/TxPriorityQueue.ts:244–244  ·  view source on GitHub ↗
(self: TxPriorityQueue<A>)

Source from the content-addressed store, hash-verified

242 * @since 2.0.0
243 */
244export const isNonEmpty = <A>(self: TxPriorityQueue<A>): Effect.Effect<boolean> => Effect.map(size(self), (n) => n > 0)
245
246/**
247 * Observes the smallest element without removing it.

Callers

nothing calls this directly

Calls 2

sizeFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected