hex.neg

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

Signature

def neg n, x { ... }

Defined in hex/math_basic.fj — lines 192–195 (view on GitHub).

Complexity

  • Time: ~@+4n

  • Space: n(1.5@+17)

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

Source

Depends on

Used by

Example uses


← Previous: hex.dec.step Next: hex.abs