gleam-lang / language-tour

👩🏽‍💻 Learn Gleam in your browser
https://tour.gleam.run/
82 stars 62 forks source link

Add simple BitArray concatenation example #102

Closed ddfisher closed 4 months ago

ddfisher commented 4 months ago

I was learning about BitArrays as part of going through the CodeCrafters Redis project and wasn't sure how to interact with them from the docs in the language tour or standard library. (I have a background in Haskell and Rust, but not Erlang or Elixir.) Having a simple concatenation example would've been super handy, and seems like it could make sense to include here. An explanation of BitArray patterns would also be quite helpful, but this seemed like a good place to start.