Skip to content

Instantly share code, notes, and snippets.

@AlexDaniel
Forked from Whateverable/query
Created June 25, 2018 22:57
Show Gist options
  • Save AlexDaniel/dc3ddc5fbc7e98f8a18e0a9e445b38d0 to your computer and use it in GitHub Desktop.
Save AlexDaniel/dc3ddc5fbc7e98f8a18e0a9e445b38d0 to your computer and use it in GitHub Desktop.
greppable6
File Code
SKAJI/HTTP-Tinyish
…/Base.pm6 :48:
for @out <-> $header {
TBROWDER/Net-IP
…/IP.pm6 :136:
for @quads <-> $q {
TBROWDER/Net-IP
…/IP.pm6 :360:
for @ip <-> $q {
UGEXE/zef
…/README.pod :100:
Note: In the name portion of the B<URN> style, a double I<--> indicates a I<::>. This is because modules can have I<->
MARTIMM/mongo-perl6-driver
…/465-HLCollection.t :47:
is $doc<fields><->, 'current record is empty', $doc<fields><->;
MadcapJake/Test-Lab
…/Experiment.pm6 :105:
for @ignore-map <-> $ignore {
Perl6-Noise-Gang/p6-Music-Helpers
…/README.md :32:
The arithmetic operators `&infix:<+>` and `&infix:<->` are overloaded and exported for any combination between `Note`s and `Interval`s, and return new `Note`s or `Interval`s, depending on invocation:
Perl6-Noise-Gang/p6-Music-Helpers
…/Helpers.pm :43:
The arithmetic operators C<&infix:<+>> and C<&infix:<->> are overloaded and
Perl6-Noise-Gang/p6-Music-Helpers
…/Helpers.pm :139:
multi infix:<->(Note:D $lhs, Note:D $rhs --> Interval) is export {
Perl6-Noise-Gang/p6-Music-Helpers
…/Helpers.pm :149:
multi infix:<->(Note:D $note, Int $interval --> Note) is export {
Perl6-Noise-Gang/p6-Music-Helpers
…/Helpers.pm :153:
multi infix:<->(Int $interval, Note:D $note --> Note) is export {
Takadonet/Algorithm--Diff
…/Diff.pm :1213:
position 0 of the first sequence should be deleted (C<->). The second
github/Takadonet/Algorithm--Diff/lib/Algorithm/Diff.pm�1244�(C<+>: E…
Tux/CSV
…/CSV.pod6 :953:
The range operator (C<->) using C<cell>s can be used to define top-left and
Util/Perl6-Math-Quaternion
…/Quaternion.pm6 :91:
multi sub infix:<-> ( ::?CLASS $a, Real $b ) is export { $a.new: $a.r-$b, $a.i, $a.j, $a.k }
Util/Perl6-Math-Quaternion
…/Quaternion.pm6 :92:
multi sub infix:<-> ( Real $b, ::?CLASS $a ) is export { $a.new: $b-$a.r,-$a.i,-$a.j,-$a.k }
Util/Perl6-Math-Quaternion
…/Quaternion.pm6 :93:
multi sub infix:<-> ( ::?CLASS $a, Complex $b ) is export { $a.new: $a.r-$b.re, $a.i-$b.im, $a.j, $a.k }
Util/Perl6-Math-Quaternion
…/Quaternion.pm6 :94:
multi sub infix:<-> ( Complex $b, ::?CLASS $a ) is export { $a.new: $b.re-$a.r, $b.im-$a.i, -$a.j, -$a.k }
Util/Perl6-Math-Quaternion
…/Quaternion.pm6 :95:
multi sub infix:<-> ( ::?CLASS $a, ::?CLASS $b ) is export { $a.new: |( $a.coeffs »-« $b.coeffs ) }
Util/Perl6-Math-Quaternion
…/Quaternion.pm6 :96:
multi sub prefix:<-> ( ::?CLASS $a ) is export { $a.new: |(-« $a.coeffs ) }
andydude/p6-c-parser
…/Actions.pm6 :226:
method unary-operator:sym<-> {
andydude/p6-c-parser
…/Actions.pm6 :270:
method additive-operator:sym<->($/) { make
andydude/p6-c-parser
…/Grammar.pm6 :263:
rule unary-operator:sym<-> { <sym> }
andydude/p6-c-parser
…/Grammar.pm6 :295:
rule additive-operator:sym<-> { <sym> }
andydude/p6-c-parser
…/Lexer.pm6 :372:
token punct:sym<-> { <sym> }
atweiden/config-toml
…/Actions.pm6 :279:
method plus-or-minus:sym<->($/ --> Nil)
atweiden/config-toml
…/Grammar.pm6 :277:
token plus-or-minus:sym<-> { <sym> }
atweiden/txn-parser
…/Actions.pm6 :329:
method plus-or-minus:sym<->($/ --> Nil)
atweiden/txn-parser
…/Grammar.pm6 :323:
token plus-or-minus:sym<-> { <sym> }
awwaiid/p6-Inline-Ruby
…/Ruby.pm6 :234:
multi sub infix:<->(Inline::Ruby::RbObject $left-obj, Any $right-obj) is export {
colomon/Math-ContinuedFractions
…/ContinuedFraction.pm :137:
multi sub infix:<->(Math::ContinuedFraction $x, Math::ContinuedFraction $y) is export {
colomon/Math-ContinuedFractions
…/ContinuedFraction.pm :141:
multi sub infix:<->(Math::ContinuedFraction $x, $y) is export {
colomon/Math-ContinuedFractions
…/ContinuedFraction.pm :145:
multi sub infix:<->($x, Math::ContinuedFraction $y) is export {
colomon/Math-Polynomial
…/Polynomial.pm :73:
multi sub prefix:<->(Math::Polynomial $a) is export(:DEFAULT) {
colomon/Math-Polynomial
…/Polynomial.pm :77:
multi sub infix:<->(Math::Polynomial $a, Math::Polynomial $b) is export(:DEFAULT) {
colomon/Math-Polynomial
…/Polynomial.pm :81:
multi sub infix:<->(Math::Polynomial $a, $b) is export(:DEFAULT) {
colomon/Math-Polynomial
…/Polynomial.pm :87:
multi sub infix:<->($b, Math::Polynomial $a) is export(:DEFAULT) {
colomon/Math-Vector
…/Vector.pm :92:
multi sub infix:<->(Math::Vector $a, Math::Vector $b where { $a.dim == $b.dim }) is export
colomon/Math-Vector
…/Vector.pm :97:
multi sub prefix:<->(Math::Vector $a) is export
drforr/perl6-Perl6-Parser
…/rosetta-b.t :199:
multi prefix:<-> (BT $x) { $x.neg }
drforr/perl6-Perl6-Parser
…/rosetta-b.t :206:
multi infix:<-> (BT $x, BT $y) { $x + $y.neg }
grondilu/clifford
…/Clifford.pm6 :25:
multi prefix:<->(MultiVector $A) returns MultiVector is export { return -1 * $A }
grondilu/clifford
…/Clifford.pm6 :26:
multi infix:<->(MultiVector $A, MultiVector $B) returns MultiVector is export { $A + -$B }
grondilu/clifford
…/Clifford.pm6 :27:
multi infix:<->(MultiVector $A, Real $s) returns MultiVector is export { $A + -$s }
grondilu/clifford
…/Clifford.pm6 :28:
multi infix:<->(Real $s, MultiVector $A) returns MultiVector is export { $s + -$A }
grondilu/p6-modular
…/Modular.pm :27:
multi prefix:<->(Modulo $a)
grondilu/p6-modular
…/Modular.pm :29:
multi infix:<->(Modulo $a, Modulo $b where $a.modulus ~~ $b.modulus)
jamesneko/dice-roller
…/Roller.pm6 :21:
token add_op:sym<-> { <sym> }
jamesneko/dice-roller
…/Roller.pm6 :292:
method add_op:sym<->($/) {
masak/007
…/Builtins.pm :228:
die X::TypeCheck.new(:operation<->, :got($lhs), :expected(Val::Int))
masak/007
…/Builtins.pm :230:
die X::TypeCheck.new(:operation<->, :got($rhs), :expected(Val::Int))
masak/007
…/Builtins.pm :308:
:operation("prefix:<->"),
masak/007
…/Q.pm :146:
### like `-5` is parsed as a `prefix:<->` containing a literal `5`.
masak/007
…/operators.t :381:
outputs 'say(infix:<+> == prefix:<->)', "False\n",
masak/007
…/custom-ops.t :476:
func infix:<!>(left, right) is tighter(prefix:<->) {
masak/gge
…/Perl6Regex.pm :646:
if $exp.hash-access('sep') <-> $sep {
matiaslina/perl6-matrix-client
…/client.pod6 :166:
The parameters can be typed with C<-> instead C<_> for style purposes, the method
perl6-community-modules/Date-WorkdayCalendar
…/WorkdayCalendar.pm :229:
multi infix:<->(Workdate:D $start, Workdate:D $target) is export {
perl6-community-modules/Date-WorkdayCalendar
…/WorkdayCalendar.pm :266:
C</> or C<-> as separators in a date. The format of the date B<must be> in
perl6-community-modules/Date-WorkdayCalendar
…/WorkdayCalendar.pm :448:
=head2 Arithmetic: C<Workdate $wd1 B<-> Workdate $wd2>
perl6/doc
…/5to6-nutshell.pod6 :68:
In identifiers, Perl 6 allows the use of dashes (C<->), underscores (C<_>), apostrophes (C<'>), and alphanumerics:
perl6/doc
…/5to6-nutshell.pod6 :517:
=item C<-> Numeric Subtraction
perl6/doc
…/5to6-nutshell.pod6 :856:
variable to a C«<->». When translating from Perl 5, inspect the use of the loop variable to decide if
perl6/doc
…/5to6-nutshell.pod6 :863:
for @cars <-> $car {...} # Perl 6; read-write
perl6/doc
…/5to6-nutshell.pod6 :871:
for @cars <-> $_ {...} # Perl 6; $_ is also read-write
perl6/doc
…/5to6-nutshell.pod6 :1281:
use of C<-> with C<-M> to "no" a module is no longer available.
perl6/doc
…/5to6-perlfunc.pod6 :100:
however - method calls bind more tightly than C<->, so, for example,
perl6/doc
…/5to6-perlop.pod6 :70:
As in Perl 5, unary C<!> and C<-> do logical and arithmetic negation,
perl6/doc
…/5to6-perlop.pod6 :112:
Binary C<+> and C<-> do addition and subtraction, respectively, as you would
perl6/doc
…/contexts.pod6 :50:
Numeric context can be forced by using arithmetic operators such as C<+> or C<->. In that context, the L<C<Numeric>|/routine/Numeric> method will be called if available and the value returned used as the numeric value of the object.
perl6/doc
…/control.pod6 :417:
to be read-write, use C«<->» instead of C«->». If you need to make C<$_>
perl6/doc
…/control.pod6 :421:
for @foo <-> $_ { $_++ }
perl6/doc
…/functions.pod6 :1078:
double dashes (C<-> or C<-->).
perl6/doc
…/js-nutshell.pod6 :274:
Node.js has C<+>, C<->, C</>, C<*>, C<%>, and (in ES6) C<**> as numeric
perl6/doc
…/operators.pod6 :909:
multi sub prefix:<->(Any --> Numeric:D)
perl6/doc
…/operators.pod6 :1124:
multi sub infix:<->($a, $b --> Numeric:D)
perl6/doc
…/rb-nutshell.pod6 :401:
=item C<-> Numeric Subtraction
perl6/doc
…/rb-nutshell.pod6 :692:
Ruby, unless you change C«->» to C«<->».
perl6/doc
…/rb-nutshell.pod6 :699:
for @cars <-> $car {...} # Perl 6; read-write
perl6/doc
…/regexes.pod6 :342:
Within the C«< >» you can use C<+> and C<-> to add or remove multiple range
perl6/doc
…/regexes.pod6 :360:
To negate a character class, put a C<-> after the opening angle:
perl6/doc
…/regexes.pod6 :373:
Just as you can use the C<-> for both set difference and negation of a
perl6/doc
…/syntax.pod6 :230:
underscore or number). You can also embed dashes C<-> or single quotes
perl6/doc
…/traps.pod6 :971:
tighter than that of the prefix C<->. If you wish to raise a negative number
perl6/doc
…/Block.pod6 :19:
A block can have a L<Signature|/type/Signature> between C<< -> >> or C<< <-> >>
perl6/doc
…/Block.pod6 :25:
If the signature is introduced with C<< <-> >>, then the parameters are marked
perl6/doc
…/Block.pod6 :27:
X«|<->»
perl6/doc
…/Block.pod6 :29:
my $swap = <-> $a, $b { ($a, $b) = ($b, $a) };
perl6/doc
…/Date.pod6 :337:
=head2 sub infix:<->
perl6/doc
…/Date.pod6 :339:
multi sub infix:<-> (Date:D, Int:D --> Date:D)
perl6/doc
…/Date.pod6 :340:
multi sub infix:<-> (Date:D, Date:D --> Int:D)
perl6/doc
…/DateTime.pod6 :397:
=head2 sub infix:<->
perl6/doc
…/DateTime.pod6 :399:
multi sub infix:<-> (DateTime:D, Duration:D --> DateTime:D)
perl6/doc
…/DateTime.pod6 :400:
multi sub infix:<-> (DateTime:D, DateTime:D --> Duration:D)
perl6/doc
…/Signature.pod6 :21:
L<method|/type/Method> names, on blocks after a C<< -> >> or C<< <-> >> arrow,
perl6/doc
…/Str.pod6 :682:
effect as the C<-> flag: left-justification.
perlpilot/p6-Questhub
…/qh :14:
next unless any(@($q.tags)) ~~ any(@(%c<+>)) & none(@(%c<->));
pierre-vigier/Perl6-Math-Matrix
…/Matrix.pm6 :893:
multi sub prefix:<->(::?CLASS $a --> ::?CLASS:D ) is export { $a.negated() }
pierre-vigier/Perl6-Math-Matrix
…/Matrix.pm6 :894:
multi sub infix:<->(Numeric $n, ::?CLASS $a --> ::?CLASS:D ) is export { $a.negated.add($n) }
pierre-vigier/Perl6-Math-Matrix
…/Matrix.pm6 :895:
multi sub infix:<->(::?CLASS $a, Numeric $n --> ::?CLASS:D ) is export { $a.add(-$n) }
pierre-vigier/Perl6-Math-Matrix
…/Matrix.pm6 :896:
multi sub infix:<->(::?CLASS $a,::?CLASS $b --> ::?CLASS:D ) is export { $a.subtract($b) }
ppentchev/perl6-Getopt-Std
…/Std.pm6 :236:
with a C<-> character. The C<:permute> flag is redundant if C<:nonopts>
rakudo-p5/v5
…/Grammar.pm :2722:
token prefix:sym<-> { <sym> <O('%symbolic_unary')> }
rakudo-p5/v5
…/Grammar.pm :2744:
token infix:sym<-> { <sym> <O('%additive')> }
raydiak/Math-Symbolic
…/Language.pm6 :69:
:eval( &infix:<-> ),
raydiak/Math-Symbolic
…/Language.pm6 :252:
:eval( &prefix:<-> ),
raydiak/Math-Symbolic
…/Language.pm6 :357:
for $func."$prop"() <-> $val {
sergot/Term--ProgressBar
…/e2.p6 :5:
my $bar = Term::ProgressBar.new( :left<->, :right<->, :style<|>, count => $count, :name<Testing..>, width => 25, :p );
spitsh/spitsh
…/Actions.pm6 :899:
method prefix:sym<-> ($/) { make SAST::Negative.new() }
spitsh/spitsh
…/Grammar.pm6 :582:
token prefix:sym<-> { <sym> }
spitsh/spitsh
…/SAST.pm6 :648:
for |@!write,|@!append,|@!in <-> $lhs, $rhs {
spitsh/spitsh
…/SAST.pm6 :1218:
for flat @.children Z ($!LHS-junct-ctx,$!RHS-junct-ctx) <-> $child,$junct-ctx {
spitsh/spitsh
…/SAST.pm6 :1374:
if $cond.topic <-> $topic-container {
spitsh/spitsh
…/Compile-Statement-Control.pm6 :54:
for @places-to-look <-> $thing {
spitsh/spitsh
…/Composer.pm6 :284:
if $THIS.else <-> $else {
spitsh/spitsh
…/Composer.pm6 :672:
if $block.one-stmt <-> $last-stmt {
supernovus/perl6-datetime-math
…/Math.pm6 :91:
#multi infix:<->(DateTime:D $a, DateTime:D $b) is export {
tony-o/perl6-bench
…/Bench.pm6 :4:
(try require ::('Telemetry') <&infix:<->>) === Nil and $use-telemetry = False;
tony-o/perl6-bench
…/Bench.pm6 :25:
?? infix:<->($a[$i], $b[$i])
tony-o/perl6-bench
…/telemetry.t :7:
if (try require ::('Telemetry') <&infix:<->>) !~~ Nil {
ugexe/zef
…/README.pod :105:
Note: In the name portion of the B<URN> style, a double I<--> indicates a I<::>. This is because modules can have I<->
zoffixznet/perl6-Color
…/README.pod :260:
=head2 C<->
zoffixznet/perl6-Color
…/Operators.pm6 :8:
multi infix:<-> (Color $c1, Real $c2) is export {Color.new(|op $c1, $c2, '-')}
zoffixznet/perl6-Color
…/Operators.pm6 :9:
multi infix:<-> (Real $c1, Color $c2) is export {Color.new(|op $c1, $c2, '-')}
zoffixznet/perl6-Color
…/Operators.pm6 :10:
multi infix:<-> (Color $c1, Color $c2) is export {Color.new(|op $c1, $c2, '-')}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment