From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id ADBAEBDDB for ; Sat, 27 Aug 2005 13:53:47 +0200 (CEST) Received: from postfix4-2.free.fr (postfix4-2.free.fr [213.228.0.176]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j7RBrlJ1014333 for ; Sat, 27 Aug 2005 13:53:47 +0200 Received: from quatre.invalid (vol75-1-81-57-79-249.fbx.proxad.net [81.57.79.249]) by postfix4-2.free.fr (Postfix) with ESMTP id 563BB323438; Sat, 27 Aug 2005 13:53:47 +0200 (CEST) Received: from berke by quatre.invalid with local (Exim 4.50) id 1E8zFr-0001Co-Md; Sat, 27 Aug 2005 13:53:47 +0200 Date: Sat, 27 Aug 2005 13:53:47 +0200 From: Berke Durak To: David Thomas Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Puzzle Message-ID: <20050827115347.GA3859@ara.zapto.org> References: <20050826192117.98447.qmail@web30503.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050826192117.98447.qmail@web30503.mail.mud.yahoo.com> User-Agent: Mutt/1.5.9i X-Miltered: at nez-perce with ID 4310544B.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; berke:01 durak:01 caml-list:01 berke:01 durak:01 26,:98 ...:98 wrote:01 interaction:01 seems:03 fri:05 aug:06 rather:07 fun:08 2005:89 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.3 On Fri, Aug 26, 2005 at 12:21:17PM -0700, David Thomas wrote: > I have three lists that I would like to have sorted > through user interaction. I can, of course, say > "List.sort ask list" for each list. What if, however, > rather than sorting each list in turn, I wanted the > questions to be interleaved, either randomly or in a > prespecified sequence? Is it possible to do this > without reimplementing sort? I easily could, but it > seems more fun without... Of course, you could first ask all the questions to the user and store the answers, then use List.sort. -- Berke Durak