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

Function isNonEmpty

packages/effect/src/TxHashMap.ts:662–663  ·  view source on GitHub ↗
(self: TxHashMap<K, V>)

Source from the content-addressed store, hash-verified

660 * @since 4.0.0
661 */
662export const isNonEmpty = <K, V>(self: TxHashMap<K, V>): Effect.Effect<boolean> =>
663 Effect.map(isEmpty(self), (empty) => !empty)
664
665/**
666 * Updates the value for the specified key if it exists, returning the previous value in `Some`; returns `None` and leaves the map unchanged when the key is absent.

Callers

nothing calls this directly

Calls 2

isEmptyFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected