Browse thread
Re: [Caml-list] productivity improvement
-
Oleg
- William Lovas
- Alessandro Baretta
- Emmanuel Renieris
- Brian Smith
[
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: | Alessandro Baretta <alex@b...> |
| Subject: | Re: [Caml-list] productivity improvement |
Daniel de Rauglaudre wrote: >>>let print_aux hours minutes = >>> if hours < 10 then print_char ' '; >>> print_int hours; >>> print_char ':'; >>> if minutes < 10 then print_char '0'; >>> print_int minutes;; >> >>let print_aux h m = printf >> (if minutes < 10 then "%2d:0%1d" else "%2d:%2d") h m > > > let print_aux = printf "%02d:%02d" You're a real O'Caml Jedi. Type inference be with you! Alex ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners