Hyperlinkv0.8.0-beta.28

HashSet

HashSet.isEmptyconsteffect/HashSet.ts:345
<V>(self: HashSet<V>): boolean

Checks whether the HashSet is empty.

Example (Checking whether a HashSet is empty)

import { HashSet } from "effect"

const empty = HashSet.empty<string>()
console.log(HashSet.isEmpty(empty)) // true

const nonEmpty = HashSet.make("a")
console.log(HashSet.isEmpty(nonEmpty)) // false
getters
Source effect/HashSet.ts:3451 lines
export const isEmpty: <V>(self: HashSet<V>) => boolean = internal.isEmpty
Referenced by 1 symbols