bit.one (arity 2)ΒΆ

x[:n] = (1<<n) - 1   // all 1's

SignatureΒΆ

def one n, x { ... }

Defined in bit/memory.fj β€” lines 55–57 (view on GitHub).

ComplexityΒΆ

  • Time: n@

  • Space: n@

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

SourceΒΆ


← Previous: bit.one/1 Next: bit.unsafe_mov β†’