In the following given code what does the eqtype
means? I know that there exists a type
keyword in SML which lets you alias the types but eqtype is something new to me.
signature SYMBOL =
sig
eqtype symbol
val symbol : string -> symbol
val name : symbol -> string
type 'a table
val empty : 'a table
val enter : 'a table * symbol * 'a -> 'a table
val look : 'a table * symbol -> 'a option
end
I tried to find the explanation in the documentation but couldn't find anything about it. Can anybody explain it to me? Thanks.
Intuitively, it seems that eqtype
let's you declare a type which will we need to specify when we create the structure of this signature.