Mercurial > urweb
comparison 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 |
comparison
equal
deleted
inserted
replaced
828:14a6c0971d89 | 829:20fe00fd81da |
---|---|
55 | 55 |
56 val strlen : string -> int | 56 val strlen : string -> int |
57 val strcat : string -> string -> string | 57 val strcat : string -> string -> string |
58 val strsub : string -> int -> char | 58 val strsub : string -> int -> char |
59 val strsuffix : string -> int -> string | 59 val strsuffix : string -> int -> string |
60 val strchr : string -> char -> option string | |
61 val strindex : string -> char -> option int | |
62 val substring : string -> int -> int -> string | |
60 | 63 |
61 class show | 64 class show |
62 val show : t ::: Type -> show t -> t -> string | 65 val show : t ::: Type -> show t -> t -> string |
63 val show_int : show int | 66 val show_int : show int |
64 val show_float : show float | 67 val show_float : show float |