Mercurial > urweb
diff lib/ur/basis.urs @ 829:20fe00fd81da
Substring functions; fix a nasty MonoReduce pattern match substitution bug
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sat, 30 May 2009 13:29:00 -0400 |
parents | 14a6c0971d89 |
children | 5e1a4b12c83a |
line wrap: on
line diff
--- a/lib/ur/basis.urs Sat May 30 09:59:10 2009 -0400 +++ b/lib/ur/basis.urs Sat May 30 13:29:00 2009 -0400 @@ -57,6 +57,9 @@ val strcat : string -> string -> string val strsub : string -> int -> char val strsuffix : string -> int -> string +val strchr : string -> char -> option string +val strindex : string -> char -> option int +val substring : string -> int -> int -> string class show val show : t ::: Type -> show t -> t -> string