l...@gnu.org (Ludovic Courtès) writes:

> John Darrington <j...@darrington.wattle.id.au> skribis:
>
>> How about something like (string-take-fields "1.22.3.04.5" 3) which would 
>> return "1.22.3"
>
> Agreed.  What ‘version-prefix’, with the optional argument defaulting
> to 2?

I also like 'version-prefix', although I'd favor making it a required
argument.  The improved code clarity is well worth two extra characters.
I don't feel strongly though.

>> Possibly an optional argument specifying the separator might be useful too.
>
> I think that’d be overkill.

Agreed.

     Mark

Reply via email to