This website requires JavaScript.
Explore
Help
Register
Sign in
aparler
/
RosettaCodeData
Watch
1
Star
0
Fork
You've already forked RosettaCodeData
0
Code
Issues
12
Pull requests
3
Projects
Releases
Packages
Wiki
Activity
Actions
master
RosettaCodeData
/
Task
/
Function-composition
/
Perl-6
/
function-composition.pl6
4 lines
102 B
Raku
Raw
Permalink
Normal View
History
Unescape
Escape
Another update from ingydotnet^djgoku
2015-11-18 06:14:39 +00:00
sub
triple
(
$n
)
{
3
*
$n
}
June 2018 Update
2018-06-22 20:57:24 +00:00
my
&f
=
&triple
∘
&prefix:
<
-
>
∘
{
$^n
+
2
}
;
say
&f
(
5
)
;
# prints "-21".
Reference in a new issue
Copy permalink