Let assert
let assert is another way to intentionally crash your Gleam
program. It is similar to the panic keyword in that it crashes
when the program has reached a point that should never be reached.
let assert is similar to let in that it is a way to
assign values to variables, but it is different in that the pattern can be
partial. The pattern does not need to match every possible value of the
type being assigned.
Just like panic and todo, the as keyword
can be used with let assert to supply a custom panic message if
the pattern fails to match and the program crashes.
Like panic this feature should be used sparingly, and likely not
at all in libraries.