The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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 by output.

Methods

print

Pretty-prints the node to its filehandle argument.

EXAMPLE

        [X + Y || X <- [1, 2, 3], Y <- [1, 2, 3], X + Y > 2]