From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 98630 invoked by alias); 28 Oct 2015 19:06:11 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 98617 invoked by uid 89); 28 Oct 2015 19:06:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: aibo.runbox.com Received: from aibo.runbox.com (HELO aibo.runbox.com) (91.220.196.211) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 28 Oct 2015 19:06:05 +0000 Received: from [10.9.9.206] (helo=mailfront02.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1ZrW2r-0002Pj-QW; Wed, 28 Oct 2015 20:06:02 +0100 Received: from [65.197.233.102] (helo=toshie.bothner.com) by mailfront02.runbox.com with esmtpsa (uid:757155 ) (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.76) id 1ZrW2Z-0003iX-Na; Wed, 28 Oct 2015 20:05:43 +0100 Subject: Re: kawa 2.1 range indices with vectors To: Debabrata Pani , kawa@sourceware.org References: From: Per Bothner Message-ID: <56311C84.4020109@bothner.com> Date: Wed, 28 Oct 2015 19:06:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-q4/txt/msg00029.txt.bz2 On 10/28/2015 10:00 AM, Debabrata Pani wrote: > But the following one , though it gives the correct output, throws an > error as well > > #|kawa:17|# ((list 1 2 3 4 5 6 7 8 9 10 11) [5 6 2]) > java.lang.Error: new IndirectIndexedSeq > at gnu.lists.IndirectIndexedSeq.(IndirectIndexedSeq.java:17) > at gnu.lists.Sequences.indirectIndexed(Sequences.java:190) > at gnu.kawa.functions.ApplyToArgs.applyN(ApplyToArgs.java:167) > at gnu.mapping.Procedure.apply(Procedure.java:126) > at gnu.mapping.Procedure.apply(Procedure.java:118) > at gnu.mapping.CallContext.runUntilDone(CallContext.java:227) > at gnu.expr.ModuleExp.evalModule2(ModuleExp.java:350) > at gnu.expr.ModuleExp.evalModule(ModuleExp.java:212) > at kawa.Shell.run(Shell.java:291) > at kawa.Shell.run(Shell.java:203) > at kawa.Shell.run(Shell.java:184) > at kawa.repl.processArgs(repl.java:687) > at kawa.repl.main(repl.java:793) > (#sequence 6 7 3) Ooops. That was some left-over debugging stuff. I removed it, and checked the update in. Clearly, I need more tests ... -- --Per Bothner per@bothner.com http://per.bothner.com/