Convert integer to bits array

digits(x, base=2, pad=16) |> reverse

19 Likes