variable '_' is unbound
Tue May 28 19:28:08 CEST 2002
On Tue, May 28, 2002 at 12:54:32PM -0400, Vance Shipley wrote:
> foo(Arg) when bar == Arg; <<_:3, 1:1, _:12>> == Arg ->
> I reallu just need to test one bit in the middle of this binary.
> I guess I need a strategy that doesn't require binding a variable.
And that strategy seems to be:
foo(Arg) when bar == Arg;
(is_binary(Arg) and ((Arg band <<16, 0>>) == <<16,0>>)) ->
More information about the erlang-questions