2
votes
1answer
112 views

Scala Direction enum with Enumeration and collection usage

I've just implement direction enum object Direction extends Enumeration { type Direction = Value val Up, Right, Down, Left = Value val pairs = HashSet() ++ List((HashSet() ++ List(Up, Down)), ...