NAME
Erlang::Parser::Node::Comprehension - a list or binary comprehension
DESCRIPTION
Used to generate (binary) lists/strings by a combination of generators, guards and output expressions.
Accessors
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 byoutput.
Methods
print-
Pretty-prints the node to its filehandle argument.
EXAMPLE
[X + Y || X <- [1, 2, 3], Y <- [1, 2, 3], X + Y > 2]