From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA29335; Mon, 17 Nov 2003 11:13:21 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA29762 for ; Mon, 17 Nov 2003 11:13:19 +0100 (MET) Received: from megs23.100mwh.com ([205.214.86.13]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hAHADI113332 for ; Mon, 17 Nov 2003 11:13:18 +0100 (MET) Received: from [205.214.86.158] (helo=uaapc442) by megs23.100mwh.com with asmtp (Exim 4.24) id 1ALgNb-0006Pu-KS; Mon, 17 Nov 2003 03:13:12 -0700 Cc: caml-list@inria.fr To: Selentek 24331-03 Subject: Re: [Caml-list] optional arguments References: <20031117085249.GA11793@inv_machine> Message-ID: From: Artem Prisyznuk Content-Type: text/plain; format=flowed; charset=koi8-r MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Mon, 17 Nov 2003 12:13:32 +0200 In-Reply-To: <20031117085249.GA11793@inv_machine> User-Agent: Opera7.22/Win32 M2 build 3221 X-MailScanner-Information: Please contact the ISP for more information X-MailScanner: Found to be clean X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - megs23.100mwh.com X-AntiAbuse: Original Domain - inria.fr X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - sit.kiev.ua X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 artem:01 val:01 artem:01 nov:01 match:02 0300,:02 wrote:03 argument:03 arguments:03 let:04 let:04 send:93 there:16 mon:18 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Mon, 17 Nov 2003 11:52:49 +0300, Selentek 24331-03 wrote: > Is there any way to "send optional argument with None value". f ?v:a ();; > let a = None;; > val a : 'a option = None > > let f ?v () = > match v with > | Some i -> i + 1 > | None -> 0 -- Artem Prysyznuk tema@sit.kiev.ua ------------------- 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