* stack module with "top"
@ 1999-04-09 22:12 Markus Mottl
0 siblings, 0 replies; only message in thread
From: Markus Mottl @ 1999-04-09 22:12 UTC (permalink / raw)
To: OCAML
Hello,
Just a very small feature request: wouldn't it be nice to have a
"top"-function in the standard stack-module?
E.g.:
let top s =
match s.c with
hd::_ -> hd
| [] -> raise Empty
Best regards,
Markus Mottl
--
Markus Mottl, mottl@miss.wu-wien.ac.at, http://miss.wu-wien.ac.at/~mottl
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-04-12 6:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-04-09 22:12 stack module with "top" Markus Mottl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox