This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

kawa 2.1 range indices with vectors


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]