(rontolisp) docs
← Functions

dpb

(dpb newbyte bytespec integer)

Deposit byte: returns a copy of integer with the field named by the byte specifier bytespec (see byte) replaced by the low size bits of newbyte; the other bits are unchanged. On the interpreter and JVM integer may be any magnitude; on WASM the result stays within the 31-bit i31 range only.