Sha256: 492bb748781afe1f344a71049b8ace97b078db19387e4c7802209e19a0343c31

Contents?: true

Size: 217 Bytes

Versions: 53

Compression:

Stored size: 217 Bytes

Contents

class Accumulate {
    method accumulate (@list, $function){
        my @accumulated;
        for @list -> $element {
            @accumulated.push: $function($element);
        }
        return @accumulated;
    }
}

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
trackler-2.0.5.16 tracks/perl6/exercises/accumulate/Example.pm
trackler-2.0.5.15 tracks/perl6/exercises/accumulate/Example.pm
trackler-2.0.5.14 tracks/perl6/exercises/accumulate/Example.pm
trackler-2.0.5.13 tracks/perl6/exercises/accumulate/Example.pm
trackler-2.0.5.12 tracks/perl6/exercises/accumulate/Example.pm
trackler-2.0.5.11 tracks/perl6/exercises/accumulate/Example.pm
trackler-2.0.5.10 tracks/perl6/exercises/accumulate/Example.pm
trackler-2.0.5.9 tracks/perl6/exercises/accumulate/Example.pm
trackler-2.0.5.8 tracks/perl6/exercises/accumulate/Example.pm
trackler-2.0.5.7 tracks/perl6/exercises/accumulate/Example.pm
trackler-2.0.5.6 tracks/perl6/exercises/accumulate/Example.pm
trackler-2.0.5.5 tracks/perl6/exercises/accumulate/Example.pm
trackler-2.0.5.4 tracks/perl6/exercises/accumulate/Example.pm
trackler-2.0.5.3 tracks/perl6/exercises/accumulate/Example.pm
trackler-2.0.5.2 tracks/perl6/exercises/accumulate/Example.pm
trackler-2.0.5.1 tracks/perl6/exercises/accumulate/Example.pm
trackler-2.0.5.0 tracks/perl6/exercises/accumulate/Example.pm
trackler-2.0.4.0 tracks/perl6/exercises/accumulate/Example.pm
trackler-2.0.3.9 tracks/perl6/exercises/accumulate/Example.pm
trackler-2.0.3.8 tracks/perl6/exercises/accumulate/Example.pm