Math-Symbolic-Custom-Transformation

 view release on metacpan or  search on metacpan

lib/Math/Symbolic/Custom/Transformation.pm  view on Meta::CPAN

                "Failed to parse replacement '$copy' as a Math::Symbolic tree."
            );
        }
    }

    my $self = {
        pattern => $pattern,
        replacement => $replacement,
    };

    bless $self => $class;

    return $self;
}


=item apply

Applies the transformation to a Math::Symbolic tree. First argument must be
a Math::Symbolic tree to transform. The tree is not transformed in-place,
but its matched subtrees are contained in the transformed tree, so if you plan

lib/Math/Symbolic/Custom/Transformation/Group.pm  view on Meta::CPAN

            );
            push @trafos, $trafo;
        }
    }

	my $self = {
		transformations => \@trafos,
        conjunction => $conjunction,
	};

	bless $self => $class;

    return $self;
}


=item apply

Applies the transformation (group) to a
C<Math::Symbolic> tree. First argument must be
a C<Math::Symbolic> tree to transform. The tree is not transformed in-place,



( run in 0.587 second using v1.01-cache-2.11-cpan-3b35f9de6a3 )