Open harrysolovay opened 1 year ago
A utility to simplify destructuring runes from runes.
const abc = Rune.tuple([a, b, c]) const [a, b, c] = Rune.de(abc) const xyz = Rune.rec({ a, b, c }) const { x, y, z } = Rune.de(xyz)
It should probably be called something else (perhaps Rune.destructure or Rune.access, but this does seem like a nice utility.
Rune.destructure
Rune.access
A utility to simplify destructuring runes from runes.