Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
May 11th, 2018
112
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Scala
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
def
scanWhile
[
B
<:
List
[
A
]
, A
]
(
base
:
B
)
(
l
:
Traversable
[
A
]
)
(
f
:
B
=>
Boolean
)
=
{
l.
view
.
scanLeft
(
base
)
(
(
Acc, Term
)
=>
Term
::
Acc
)
.
tail
.
takeWhile
(
f
(
_
)
)
.
last
.
reverse
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
Tid
Python | 11 min ago | 0.24 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 14 min ago | 0.39 KB
Router CVLC dual wan
TypoScript | 17 min ago | 8.15 KB
Untitled
Java | 26 min ago | 6.01 KB
Untitled
Java | 26 min ago | 1.06 KB
Untitled
Java | 27 min ago | 1.34 KB
Help for Dan
C++ | 27 min ago | 1.10 KB
Untitled
XML | 27 min ago | 1.97 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!