Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
[Perl 6] Higher-order function combo demo.
cwchen
Nov 28th, 2017
12,406
0
Never
2
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Perl 6
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
my
$n
=
reduce
{
$^a
+
$^b
}
,
map
{
$_
**
2
}
,
grep
{
$_
mod
2
!=
0
}
,
1
..
10
;
$n
==
1
**
2
+
3
**
2
+
5
**
2
+
7
**
2
+
9
**
2
or
die
"Wrong value"
;
Advertisement
Comments
User was banned
User was banned
Add Comment
Please,
Sign In
to add comment
Public Pastes
⭐ Free $$$ Mehtod
CSS | 1 min ago | 0.71 KB
✅ Instant Profits with Crypto
CSS | 6 min ago | 0.71 KB
2 Day in +12.000$ ⭐
CSS | 8 min ago | 0.71 KB
⭐ Free Money Method ⭐
CSS | 8 min ago | 0.72 KB
Free money docs
CSS | 8 min ago | 0.71 KB
⭐ Free $$$ Mehtod
CSS | 11 min ago | 0.71 KB
✅ Crypto admin access
14 min ago | 0.43 KB
⭐ +12,000$ in 2 days ⭐
CSS | 20 min ago | 0.72 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!