From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 85221BBAF for ; Tue, 2 Feb 2010 05:18:08 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArQCAIM2Z0tKfVI0gWdsb2JhbACROolSPQEBFiStMoFIhQaIbQEBAwWEQAQ X-IronPort-AV: E=Sophos;i="4.49,387,1262559600"; d="scan'208";a="42903104" Received: from mail-ww0-f52.google.com ([74.125.82.52]) by mail3-smtp-sop.national.inria.fr with ESMTP; 02 Feb 2010 05:18:08 +0100 Received: by wwb31 with SMTP id 31so300078wwb.39 for ; Mon, 01 Feb 2010 20:18:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=MZIqK5fondD3asXC3rlW2gS92erjg50ICZIC3ITYd/c=; b=IY7eGQ5stOZ2cnZsZoHy8FYhNGGhRxD6yemsvMXeq9/8qHV9Gpy2VPWCAuCFbThgde dJpALPGVR6jLOkV6UYiQw7f0itFPa9PJbXVH0H1vbgOZuyls1OV9OxNaLr/QB1eDg8iO 0XBuTMLdE8hcV3PSM0hEb6xOqAAPJnirPry74= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=L9npmpRwSyRDBRMX2TqN7Q7V2uQBFLM1b0pJZXwOxVh+tl7pfn/mvWkif1mXuwIHAA rSpOI+6RR4AckUytqJyh06IEbLMe+DBkAfHihLr+vBo/7FY5M1Fy2h0YR+X6O/hjmMyI R7HcpY2+9bH0eOVT5VeaxMk58/g8UBy0HwkjI= MIME-Version: 1.0 Received: by 10.216.86.67 with SMTP id v45mr253078wee.70.1265084287498; Mon, 01 Feb 2010 20:18:07 -0800 (PST) Date: Mon, 1 Feb 2010 23:18:07 -0500 Message-ID: Subject: New to Ocaml From: chaithanya kr To: caml-list@yquem.inria.fr Content-Type: multipart/alternative; boundary=0016e6db2b1c9138bf047e96635f X-Spam: no; 0.00; ocaml:01 ocaml:01 linked:07 linked:07 similarly:08 similarly:08 function:08 function:08 suppose:09 suppose:09 cse:10 example:10 example:10 sort:12 sort:12 --0016e6db2b1c9138bf047e96635f Content-Type: text/plain; charset=ISO-8859-1 Hi all. I am new to Ocaml. Just started learning recently. I was studying lists in ocaml. In that, suppose there is a list by name singly_list, then by saying "List.length singly_list;;" I will get the length of the linked list. Similarly can anyone tell me as to how to sort a linked list using the 'sort' function? Please give me an example of using List.sort. Thank you Bye Chaitanya --0016e6db2b1c9138bf047e96635f Content-Type: text/html; charset=ISO-8859-1 Hi all. I am new to Ocaml. Just started learning recently.

I was studying lists in ocaml. In that, suppose there is a list by name singly_list, then by saying "List.length singly_list;;" I will get the length of the linked list.

Similarly can anyone tell me as to how to sort a linked list using the 'sort' function? Please give me an example of using List.sort.

Thank you

Bye
Chaitanya
--0016e6db2b1c9138bf047e96635f--