-module(glethers@block). -compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]). -export([to_string/1]). -export_type([block/0]). -type block() :: latest | {number, integer()}. -spec to_string(block()) -> binary(). to_string(Block) -> case Block of latest -> <<"latest"/utf8>>; {number, N} -> gleam@int:to_string(N) end.