Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created June 22, 2019 19:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/b8cc1f7fdbce9163c0a3e7b5a9467710 to your computer and use it in GitHub Desktop.
Save Whateverable/b8cc1f7fdbce9163c0a3e7b5a9467710 to your computer and use it in GitHub Desktop.
greppable6
grep.*\.first;
File Code
JMASLAK/Net-BGP
…/Controller.pm6 :63:
@capabilities.grep( { $^c ~~ Net::BGP::Capability::ASN32 } ).first;
JMASLAK/Net-BGP
…/Controller.pm6 :113:
@capabilities.grep( { $^c ~~ Net::BGP::Capability::ASN32 } ).first;
JNTHN/cro
…/LinkTemplate.pm6 :43:
my $endpoint = $cro-file.endpoints.grep(*.id eq $endp).first;
JSTOWE/Lumberjack-Application
…/JSON.pm :128:
my $when = self.^attributes.grep({$_.name eq '$!when'}).first;
JSTOWE/Lumberjack-Application
…/JSON.pm :131:
my $class = self.^attributes.grep({$_.name eq '$!class'}).first;
JSTOWE/Lumberjack-Application
…/JSON.pm :134:
my $level = self.^attributes.grep({ $_.name eq '$!level' }).first;
JSTOWE/Oyatul
…/Oyatul.pm :676:
self.nodes-for-purpose($purpose).grep(*.is-template).first;
JSTOWE/XML-Class
…/Class.pm :1075:
my $element = self.elements(TAG => $name, :SINGLE) || self.elements.map(&check-role).grep({ $_.local-name eq $name && $_.namespace eq $ns}).first;
SKAJI/App-Mi6
…/Mi6.pm6 :31:
my $pair = @($config).grep({ $_.key eq $key }).first;
Altai-man/ASN-META
…/META.pm6 :64:
my $def = $*TYPES.grep(*.name eq $name).first;
jonathanstowe/Lumberjack-Application
…/JSON.pm :128:
my $when = self.^attributes.grep({$_.name eq '$!when'}).first;
jonathanstowe/Lumberjack-Application
…/JSON.pm :131:
my $class = self.^attributes.grep({$_.name eq '$!class'}).first;
jonathanstowe/Lumberjack-Application
…/JSON.pm :134:
my $level = self.^attributes.grep({ $_.name eq '$!level' }).first;
jonathanstowe/Oyatul
…/Oyatul.pm :676:
self.nodes-for-purpose($purpose).grep(*.is-template).first;
jonathanstowe/XML-Class
…/Class.pm :1067:
my $element = self.elements(TAG => $name, :SINGLE) || self.elements.map(&check-role).grep({ $_.local-name eq $name && $_.namespace eq $ns}).first;
kalkin/Ddt
…/Distribution.pm6 :52:
return @candidates.grep(:f & :!l).first;
nige123/app.123.do
…/Timeline.pm :138:
return self.entries.values.map(*.Slip).grep(*.id == $entry-id).first;
noqisofon/p6-miroku
…/Miroku.pm6 :147:
my $meta-file = <META6.json META.info>.grep( { .IO ~~ :f & :!l } ).first;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment