Math-Fractal-Curve
view release on metacpan or search on metacpan
lib/Math/Fractal/Curve.pm view on Meta::CPAN
if (exists $proto->{end} and exists $proto->{start}) {
$self->{end} = [@{$proto->{end}}];
$self->{start} = [@{$proto->{start}}];
}
}
for (my $i = 0; $i < @_; $i+=2) {
$self->{$_[$i]} = $_[$i+1];
}
delete $self->{_edges};
bless $self => $class;
if (not exists $self->{generator}) {
croak "You need to supply a generator subroutine.";
}
return $self;
}
( run in 0.281 second using v1.01-cache-2.11-cpan-65fba6d93b7 )