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]

Re: kawa improvements for strings and sequences


On Jun 12, 2015, at 5:32 PM, Per Bothner <per@bothner.com> wrote:

> I checked in a number of neat features recently.
> Check out the first few sections here:
> 
> http://www.gnu.org/software/kawa/news.html

They are indeed pretty neat.

> The main still-missing functionality is replacement indexing:
>  (set! (seq [i <: j]) new-value)
> This would generalize insertion/deletion/replacement.
> I have prototype code for this (working for arbitrary java.util.List), but I
> need to figure out how to detect and handle if new-value overlaps with seq.
> 
> Another issue still unresolved is how to print ranges and indirect-indexing:
> 
> #|kawa:1|# [3 <=: 6]
> (#sequence 3 4 5 6)
> 
> I'm thinking this should display as: [3 4 5 6]
> and write as: [3 <: 7]
> 
> #|kawa:2|# ([11 12 13 14] [3 2])
> (#sequence 14 13)
> 
> This should probably print as: [14 13]

Can we also make it so that open-ended sequences such as [3 <:]
display and write in a finite number of characters?



--
Jamison Hope
The PTR Group
www.theptrgroup.com




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