You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Saying io.debug(<<3:unit(2)>>) leads to the error:
rror: Invalid bit array segment
┌─ /src/main.gleam:10:16
│
10 │ io.debug(<<3:unit(2)>>)
│ ^^^^^^^ This needs an explicit size
Hint: If you specify unit() you must also specify size().
See: https://gleam.run/book/tour/bit-arrays.html
I do understand that "unit isn't intended to specify size", but what I don't understand is how to specify the size andunit simultaneously based on the documentation as the error message suggests; there's no example of two options being specified simultaneously.
Saying
io.debug(<<3:unit(2)>>)
leads to the error:But https://tour.gleam.run/data-types/bit-arrays/ doesn't say how to specify the size as well and every guess I have made for how to do that hasn't worked.
The text was updated successfully, but these errors were encountered: