aboutsummaryrefslogtreecommitdiff
path: root/lessons/src/lesson036_bit_arrays/code.gleam
blob: dc772ca7d60969f7fc9ac82d8b74e419a0ef056d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import gleam/io

pub fn main() {
  // 8 bit int. In binary: 00000011
  io.debug(<<3>>)
  io.debug(<<3>> == <<3:size(8)>>)

  // 16 bit int. In binary: 0001100000000011
  io.debug(<<6147:size(16)>>)

  // A bit array of UTF8 data
  io.debug(<<"Hello, Joe!":utf8>>)
}