annotate lib/ur/string.urs @ 830:d07980bf1444

Defer pattern-matching exhaustiveness checks and normalize pattern types more thoroughly
author Adam Chlipala <adamc@hcoop.net>
date Sat, 30 May 2009 14:44:29 -0400
parents 20fe00fd81da
children 5e1a4b12c83a
rev   line source
adamc@821 1 type t = string
adamc@821 2
adamc@828 3 val length : t -> int
adamc@828 4
adamc@828 5 val append : t -> t -> t
adamc@828 6
adamc@821 7 val sub : t -> int -> char
adamc@821 8 val suffix : t -> int -> string
adamc@829 9
adamc@829 10 val index : t -> char -> option int
adamc@829 11 val atFirst : t -> char -> option string
adamc@829 12
adamc@829 13 val substring : t -> {Start : int, Len : int} -> string
adamc@829 14
adamc@829 15 val split : t -> char -> option (string * string)