Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jul 20th, 2018
71
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.16 KB
| None
|
0
0
raw
download
clone
embed
print
report
scala> List(1,2,3,4,5).filter(2<).map(2*)
res1: List[Int] = List(6, 8, 10)
scala> List(1,2,3,4,5).collect { case x if x > 2 => 2*x }
res2: List[Int] = List(6, 8, 10)
Add Comment
Please,
Sign In
to add comment
Public Pastes
basalt_test.lua
Lua | 13 min ago | 0.90 KB
Untitled
FreeBasic | 14 min ago | 0.57 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 23 min ago | 0.39 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 31 min ago | 0.38 KB
clipboard_fix_csv_reset
Python | 2 hours ago | 2.22 KB
Untitled
C++ | 2 hours ago | 1.85 KB
JPMorgan CEO Jamie Dimon Continues Criticism...
PHP | 2 hours ago | 1.75 KB
estructura cuestonario entrevista
JSON | 3 hours ago | 0.73 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!