add

fun add(element: String): Patch<BloomFilter>

Returns a Patch that, when absorbed with piece, marks element as present. The receiver is unchanged — mutations are delta-state.

The delta is sparse: only the (at most hashCount) Long words that contain newly-set bits are non-zero. BloomFilterSerializer encodes these as (wordIndex, wordValue) pairs — O(k) wire bytes — instead of the full O(m) bit array.