bit.neg

x[:n] = -x[:n]

Signature

def neg n, x { ... }

Defined in bit/math.fj — lines 57–60 (view on GitHub).

Complexity

  • Time: n + 5@+12

  • Space: n(2@+6)

See the complexity glossary for what @, w, dw, dbit, n mean.

Source

Depends on

Used by

Example uses


← Previous: bit.dec Next: bit.add1