#Pattern matching out the very last bit in a bit array.
1 messages · Page 1 of 1 (latest)
Ah, I see, what would this look like, I haven't really used Gleam's FFI on the Erlang side of things (I have never written Erlang), only used the JS FFI.
see here
https://github.com/gleam-lang/stdlib/blob/v0.40.0/src/gleam/bit_array.gleam#L17-L17
just change it to bit_size (and ignore the javascript part)
cool, and how would i use this in a pattern match to get the tail bit?