Algorithm-Dependency-MapReduce
    
    
  
  
  
view release on metacpan or search on metacpan
lib/Algorithm/Dependency/MapReduce.pm view on Meta::CPAN
	# Check params
	unless ( _CODE($args{'map'}) ) {
		Carp::croak("The 'map' param is not a CODE reference");
	}
	unless ( _CODE($args{'reduce'}) ) {
		Carp::croak("The 'reduce' param is not a CODE reference");
	}
	# Hand off to the parent constructor
	my $self = $class->SUPER::new(@_);
	# Add the extra attributes
	$self->{'map'}    = $args{'map'};
	$self->{'reduce'} = $args{'reduce'};
	return $self;
}
sub mapreduce {
	my $self = shift;
    
  
  
  
( run in 0.374 second using v1.01-cache-2.11-cpan-0a6323c29d9 )