All pastes #534430 Raw Edit

Someone

public text v1 · immutable
·published 2007-06-03 19:46 UTC
rendered paste body
sub all{
    my $self = shift;
    my $method = shift;
    foreach my $t ( values %{$_attributes{triangles}}) {
	$method->($t);
    }
}

#then call with

$g->all(\&Triangle::flatten);