Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- trait RepeatUntil {
- def repeat(f: => Unit)(condition: => Boolean): Unit = {
- if (!condition) {
- f
- repeat(f)(condition)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement