Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
*/
244
export
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
size
Function · 0.70
map
Method · 0.45
Tested by
no test coverage detected