two versions of optStr

This commit is contained in:
peb
2006-02-09 08:08:06 +00:00
parent dec0d1b24b
commit fd563696fa

View File

@@ -20,7 +20,8 @@ oper
nonExist : Str = variants {} ;
optStr : Str -> Str = \s -> variants {s ; []} ;
optStr : Str -> Str = \s -> variants {[] ; s} ;
strOpt : Str -> Str = \s -> variants {s ; []} ;
constTable : (A,B : Type) -> B -> A => B = \_,_,b -> \\_ => b ;
constStr : (A : Type) -> Str -> A => Str = \A -> constTable A Str ;