comparison lib/ur/string.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
4 4
5 val append : t -> t -> t 5 val append : t -> t -> t
6 6
7 val sub : t -> int -> char 7 val sub : t -> int -> char
8 val suffix : t -> int -> string 8 val suffix : t -> int -> string
9
10 val index : t -> char -> option int
11 val atFirst : t -> char -> option string
12
13 val substring : t -> {Start : int, Len : int} -> string
14
15 val split : t -> char -> option (string * string)