mapStr ; appPredefined in err monad

This commit is contained in:
aarne
2005-04-01 20:24:24 +00:00
parent 3346b0669d
commit af50c703a6
6 changed files with 81 additions and 42 deletions

View File

@@ -22,7 +22,9 @@ resource Predef = {
oper occur : Tok -> Tok -> PBool = variants {} ; -- test if occurs as substring
oper show : (P : Type) -> P -> Tok = variants {} ; -- convert param to string
oper read : (P : Type) -> Tok -> P = variants {} ; -- convert string to param
oper toStr : (P : Type) -> P -> Str = variants {} ; -- find the "first" string
oper toStr : (L : Type) -> L -> Str = variants {} ; -- find the "first" string
oper mapStr : (L : Type) -> (Str -> Str) -> L -> L = variants {} ;
-- map all strings in a data structure
} ;