public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
* kawa 2.1 range indices with vectors
@ 2015-10-28 17:00 Debabrata Pani
  2015-10-28 19:06 ` Per Bothner
  0 siblings, 1 reply; 2+ messages in thread
From: Debabrata Pani @ 2015-10-28 17:00 UTC (permalink / raw)
  To: kawa

The first one is a breeze

#|kawa:15|# ([1 2 3] [0 <: 3])
#(1 2 3)

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.<init>(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)
#|kawa:18|#


Regards,
Debabrata Pani

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: kawa 2.1 range indices with vectors
  2015-10-28 17:00 kawa 2.1 range indices with vectors Debabrata Pani
@ 2015-10-28 19:06 ` Per Bothner
  0 siblings, 0 replies; 2+ messages in thread
From: Per Bothner @ 2015-10-28 19:06 UTC (permalink / raw)
  To: Debabrata Pani, kawa



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.<init>(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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-28 19:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-28 17:00 kawa 2.1 range indices with vectors Debabrata Pani
2015-10-28 19:06 ` Per Bothner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).