blob: aab904d69da2c83e115585d08a52fa22e4a40d29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import gleam/io
import gleam/bit_array
const str = "abcdefgh
abcdefgh"
pub fn main() {
let trim = 8
let assert <<_:bytes-size(trim), "\n":utf8, rest:bytes>> =
bit_array.from_string(str)
io.debug(rest)
}
|