This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: kawa improvements for strings and sequences
- From: Jamison Hope <jrh at theptrgroup dot com>
- To: Kawa mailing list <kawa at sourceware dot org>
- Date: Fri, 12 Jun 2015 19:53:12 -0400
- Subject: Re: kawa improvements for strings and sequences
- Authentication-results: sourceware.org; auth=none
- References: <557B5001 dot 2000500 at bothner dot com>
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