bit.shr (arity 2)

x[:n] >>= 1

Signature

def shr n, x { ... }

Defined in bit/shifts.fj — lines 7–9 (view on GitHub).

Complexity

  • Time: n(2@-1)

  • Space: n(2@-1)

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

Source

Depends on

Used by

Example uses


Next: bit.shr/3