Data::Collection - capability based collection model
AllMembers: (Mappable Greppable MemberCount Sortable Reversible Printable Junctions::Common Joinable ToArray) $coll->members; defaults: map grep member_count sort reverse print any all one none join Mappable: $coll->map(CodeRef $mapping); Greppable: (Mappable) $coll->grep(CodeRef $filter); # defaulted MemberCount: $coll->member_count Sortable: $coll->sort(CodeRef $sort); Reversible: $coll->reverse Printable: $coll->print(IO $fh?); Joinable: $coll->join(Str $with?); Junctions::Common: (Junction::Any Junction::All Junction::None Junction::One) Junction::Any: $coll->any; Junction::All: $coll->all; Junction::None: $coll->none; Junction::One: $coll->one; ToArray: @{$coll}
Basic collection types:
HashMap Set ArrayColl
Facets:
Orderable Collatable
need to work out how this stuff interacts with types
To install Data::CapabilityBased, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::CapabilityBased
CPAN shell
perl -MCPAN -e shell install Data::CapabilityBased
For more information on module installation, please visit the detailed CPAN module installation guide.