a guest Dec 14th, 2018 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- // cs is some object with next() and get() methods
- val xs = for(i <- 0 if(cs.next)) yield cs.get
RAW Paste Data