|
From: | Lars Magne Ingebrigtsen |
Subject: | Re: Why (substring "abc" 0 4) does not return "abc" instead of an error? |
Date: | Mon, 16 Jul 2012 20:51:19 +0200 |
User-agent: | Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) |
Tassilo Horn <address@hidden> writes: > I'm not even able to come up with some concrete use-case where I'd > like to have the suggested behavior. It's a very common use case for me. I know that a string can't be longer than X for some particular use, so I have to say (insert (if (> (length string) 4) (substring string 0 4) string)) or something. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/
[Prev in Thread] | Current Thread | [Next in Thread] |