Last active
August 29, 2015 14:06
-
-
Save rssh/b7a4c9ec9790295b69f9 to your computer and use it in GitHub Desktop.
jdv_article6 (scala lambda expression with modification of context)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var (maxFirstLen, maxSecondLen) = (0,0) | |
list.foreach{ | |
x => maxFirstLen = max(maxFirstLen, x.firstName.length) | |
maxSecondLen = max(maxSecondLen, x.secondName.lenght) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment