在 SML 中,“nonfix”运算符可以像这样使用:
在 Haskell 中,它会像这样:
datatype Proposition = Not_ of Proposition
nonfix ~:
val ~: = Not_
在 Haskell 中,它会像这样:
data Proposition = Not_ Proposition
nonfix ~
(~) = Not_
但我在Haskell中没有找到“nonfix”的等价物。
p ==> q <=> ¬ p /\ q
,但我需要表示否定符号。 - fyxovᓕ U+14D5加拿大音节LI
或へ U+3078平假名字母HE
这样的符号来作弊,它们可以像任何字母一样用作函数名称。 - leftaroundabout