Browse thread
let int = ?([' ' '\t'] '-') digits+
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Jon Harrop <jon@f...> |
| Subject: | Re: [Caml-list] let int = ?([' ' '\t'] '-') digits+ |
On Friday 29 June 2007 16:56:45 Robert C Fischer wrote: > How would I write f - 1 to mean "one less than the value of f"? As: f - 1 The space before the digit means that it will not match this regexp. Or: f-1 The lack of a space before the "-" means that it will not match this regexp. -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. The OCaml Journal http://www.ffconsultancy.com/products/ocaml_journal/?e