-
-
Save wende/6f185a2c805e04598cb9 to your computer and use it in GitHub Desktop.
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
selectMaps($()).map { elem => | |
elem.map { jsValue => | |
jsValue.validate[Level].get | |
}: List[Level] | |
}.collect { | |
case (list: List[Level]) => Ok(views.html.levelChooser(list)) | |
} | |
(for ( elem <- selectMaps($()) | |
jsValue <- elem | |
valid <- jsValue.validate) yield valid) | |
.map {list => Ok(views.html.levelChooser(list)) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment