view 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
line wrap: on
line source
type t = string

val length : t -> int

val append : t -> t -> t

val sub : t -> int -> char
val suffix : t -> int -> string

val index : t -> char -> option int
val atFirst : t -> char -> option string

val substring : t -> {Start : int, Len : int} -> string

val split : t -> char -> option (string * string)