I just started learning today Elixir and stuck in pattern matching of Integer.
I know well how to match binary, but I can't find how to match Integer i.e. extract high byte from a simple Integer. I must either convert an Integer to binary or write a function which takes a high byte from Integer, but found nothing close in the library.
<<y1::size(8), y2::size(8), y3::size(8), y4::size(8) >> = t
where t is Integer as you may guess gives
** (MatchError) no match of right hand side value: 3232235521