Answers for "java enum in scala"

0

scala enum

object WeekDay extends Enumeration {
  type WeekDay = Value
  val Mon, Tue, Wed, Thu, Fri, Sat, Sun = Value
}
Posted by: Guest on September-24-2021

Code answers related to "Scala"

Browse Popular Code Answers by Language