Replace placeholder xor? library function
This commit is contained in:
15
lib/base.tri
15
lib/base.tri
@ -38,11 +38,16 @@ head = matchList t (\head _ : head)
|
||||
tail = matchList t (\_ tail : tail)
|
||||
|
||||
or? = (\x y :
|
||||
matchBool
|
||||
(matchBool (t t) (t t) y)
|
||||
(matchBool (t t) 0 y)
|
||||
x)
|
||||
xor? = matchBool id not?
|
||||
matchBool
|
||||
(matchBool (t t) (t t) y)
|
||||
(matchBool (t t) t y)
|
||||
x)
|
||||
|
||||
xor? = (\x y :
|
||||
matchBool
|
||||
(matchBool t (t t) y)
|
||||
(matchBool (t t) t y)
|
||||
x)
|
||||
|
||||
append = y (\self : matchList
|
||||
(\k : k)
|
||||
|
Reference in New Issue
Block a user