From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.5 required=5.0 tests=AWL,DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 1C977BC6B for ; Wed, 13 Feb 2008 09:36:17 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAADY7skc+KuYMfGdsb2JhbACQPAEBCQIIBwgTB5w7 X-IronPort-AV: E=Sophos;i="4.25,345,1199660400"; d="scan'208";a="7256510" Received: from smtp.ono.com (HELO resmaa01.ono.com) ([62.42.230.12]) by mail2-smtp-roc.national.inria.fr with ESMTP; 13 Feb 2008 09:36:16 +0100 Received: from [159.23.98.243] (192.146.187.87) by resmaa01.ono.com (7.3.118.8) (authenticated as tmp123@menta.net) id 47B1862F00080EEE for caml-list@yquem.inria.fr; Wed, 13 Feb 2008 09:36:00 +0100 Message-ID: <47B2ABE6.9090605@menta.net> Date: Wed, 13 Feb 2008 09:35:50 +0100 From: tmp123 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: caml-list Subject: next eleemnt in set Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; abstract:01 parameter:02 suggestion:03 element:03 element:03 tmp:05 tmp:05 exists:05 implement:06 function:08 function:08 useful:09 i'm:09 wondering:09 methods:12 Hello, Thanks for your time. I'm wondering which abstract type (set, map, ...) is the most useful to implement the following 3 methods: given a set of values, that are unique and ordered (it exists a "compare" function), it is necessary, in addition to the "add" and "remove element" methods, to have a "next" method. The next method takes as parameter one element of the set, and must return the immediatelly next element of the set, according to the provided compare function. Please, have someone any suggestion? Thanks again.