我刚刚在教科书上找到了定义,无法想象nexp
应该做什么/意味着什么:
data (Eq a, Show a) => QT a = C a | Q (QT a) (QT a) (QT a) (QT a)
deriving (Eq, Show)
data (Eq a, Num a, Show a) => Mat a = Mat {
nexp :: Int,
mat :: QT a}
deriving (Eq,Show)
目的是nexp :: Int
什么?