KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Here is an example from book Programming in Scala object Color extends Enumeration { //val Red, Green, Blue = Value val Red = Value("Red") val Green = Value("Green") } for (d <- Color) print(d + " ") //Error value foreach is not a member of // object xxx.Color I have latest version of Scala. Is it the reason for error?
Tags (comma-separated)
Save Edits
Cancel