Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions doc/Language/control.pod
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,24 @@ conditional again.

=comment TODO

=head1 X<samewith|control flow>

The C<samewith> allows one to call a multisub of the same name as the current sub.

=begin code

multi indent-say ( 'test' )
{
samewith 'ABCD';
}

multi indent-say ( Str $string )
{
say "\t$string";
}

=end code

=end pod

# vim: expandtab shiftwidth=4 ft=perl6