Erlang::Parser::Node::Comprehension - a list or binary comprehension
Used to generate (binary) lists/strings by a combination of generators, guards and output expressions.
binary
True if this is a binary comprehension.
output
The Erlang::Parser::Node which forms the output elements based on generators.
generators
A mixture of generators (in the form <X <- Y> or <X <= Y>) and guards which create the terms used by output.
<X <- Y
<X <= Y
print
Pretty-prints the node to its filehandle argument.
[X + Y || X <- [1, 2, 3], Y <- [1, 2, 3], X + Y > 2]
To install Erlang::Parser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Erlang::Parser
CPAN shell
perl -MCPAN -e shell install Erlang::Parser
For more information on module installation, please visit the detailed CPAN module installation guide.