Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val forLineLengths = // summary of all the things learned about "for expressions"
- for {
- file <- filesHere
- if file.getName.endsWith(".scala")
- line <- fileLines(file)
- trimmed = line.trim
- if trimmed.matches(".*for.*")
- } yield trimmed.length
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement