[erlang-questions] How to pass the length of binary to match into a function that matches the binary?
Imants Cekusins
imantc@REDACTED
Mon Nov 24 14:18:20 CET 2014
Would this work:
my_fun(<<Bin:8/binary, Rest/binary>>) -> ok;
my_fun(<<Bin:16/binary, Rest/binary>>) -> ok.
?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20141124/5d98b887/attachment.htm>
More information about the erlang-questions
mailing list