mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
two versions of optStr in Prelude.gf
This commit is contained in:
@@ -20,8 +20,8 @@ oper
|
||||
|
||||
nonExist : Str = variants {} ;
|
||||
|
||||
optStr : Str -> Str = \s -> variants {[] ; s} ;
|
||||
strOpt : 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 ;
|
||||
|
||||
Reference in New Issue
Block a user