Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Enum(UInt(), 3) creates a list of
UInt literals with values 0, 1, 2.
Its usage includes the contruction of states when the Finite State Machine is constructed, as follows:
val sNone :: sOne1 :: sTwo1s :: Nil = Enum(UInt(), 3)
where the left hand side is a destructuring expression that binds successive elements from a list creating one binding for each and the final Nil matches the
Nil at the end of the list.
Nil is required as the operators ending with colon, i.e. methods with names ending in a colon are executed on the right operand.