Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 412 Bytes

aset-byte.md

File metadata and controls

12 lines (9 loc) · 412 Bytes

aset-byte

(aset-byte array index value)

Stores value at index of the byte array array, cast as byte casts it (a number outside -128 to 127 is the oracle's IllegalArgumentException), and answers value. Any other array is the oracle's refusal. As a value a function of three arguments.

(def asb (byte-array 2))
(println (aset-byte asb 0 -56) (vec asb)) ; -56 [-56 0]