method lookup

Documentation for method lookup assembled from the following types:

class Perl6::Documentable::Registry

From Perl6::Documentable::Registry

(Perl6::Documentable::Registry) method lookup

Defined as

method lookup(Str $whatStr $by --> Hash)

This method will classify all Perl6::Documentable objects in the Perl6::Documentable::Registry using the attribute $by and will return all of those whose attribute $by is set to $what.

This queris are cached the first time they are made, so next calls to this method will be faster.

Example:

my $registry = (... initialize ...)
 
# query all Perl6::Documentable objects with $.kind 
# set to Kind::Type 
$registry.lookup(Kind::Type.Str:by<kind>)