NAME
Erlang::Parser::Node::Case - a case expression
DESCRIPTION
An expression which tries several different pattern matches and guards.
Accessors
of
-
An Erlang::Parser::Node which is evaluated to be matched against
alts
. alts
-
A list of Erlang::Parser::Node::Alts which are tried against
of
in turn.
Methods
print
-
Pretty-prints the node to its filehandle argument.
EXAMPLE
case ?MODULE:myfun() of
{X, Y} ->
io:format("I'm a tuple! ~p, ~p~n", [X, Y]);
[X, Y] = Z ->
io:format("I'm a list! ~p, ~p~n", Z)
end