Created
July 29, 2022 07:01
-
-
Save ifalok007/dde32a1b7fb54243e161655aa077d599 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
val twentySomethings = for (user <- userBase if user.age >=20 && user.age < 30) yield user.name // i.e. add this to a list | |
twentySomethings.foreach(println) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment