langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
13
Task/Call-a-function/Perl-6/call-a-function-4.pl6
Normal file
13
Task/Call-a-function/Perl-6/call-a-function-4.pl6
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
foo @args # as list operator
|
||||
foo(@args) # as named function
|
||||
foo.(@args) # as named function, explicit postfix
|
||||
$ref(@args) # as object invocation (must be hard ref)
|
||||
$ref.(@args) # as object invocation, explicit postfix
|
||||
1.$foo: @args # as pseudo-method meaning $foo(1,@args) (hard ref)
|
||||
1.$foo(@args) # as pseudo-method meaning $foo(1,@args) (hard ref)
|
||||
1.&foo: @args # as pseudo-method meaning &foo(1,@args)
|
||||
1.&foo(@args) # as pseudo-method meaning &foo(1,@args)
|
||||
1.foo: @args # as method via dispatcher
|
||||
1.foo(@args) # as method via dispatcher
|
||||
1."$name"(@args) # as method via dispatcher, symbolic
|
||||
@args X @blargs # as list infix operator to infix:<X>
|
||||
Loading…
Add table
Add a link
Reference in a new issue