caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] use identity for default function
@ 2013-02-07 19:22 Ashish Agarwal
  2013-02-07 19:53 ` Jeff Meister
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Ashish Agarwal @ 2013-02-07 19:22 UTC (permalink / raw)
  To: Caml List

[-- Attachment #1: Type: text/plain, Size: 163 bytes --]

I'd like to implement

val foo : ?f:('a -> 'b) -> 'a -> 'b

where the default for f is identity. Is there now a way to do this with all
the new features of OCaml?

[-- Attachment #2: Type: text/html, Size: 257 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-02-09 20:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-07 19:22 [Caml-list] use identity for default function Ashish Agarwal
2013-02-07 19:53 ` Jeff Meister
2013-02-07 20:04   ` AW: " Gerd Stolpmann
2013-02-07 20:06   ` Gabriel Kerneis
2013-02-09 13:13   ` Goswin von Brederlow
2013-02-09 20:10     ` Jeff Meister
2013-02-07 19:59 ` Martin Jambon
2013-02-07 20:12   ` Gabriel Kerneis
2013-02-07 20:57   ` Ashish Agarwal
2013-02-08  2:47 ` Jacques Garrigue

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).