[Development] mid(), left(), right(), and ... ?
André Pönitz
apoenitz at t-online.de
Tue Apr 4 20:56:34 CEST 2017
On Tue, Apr 04, 2017 at 09:33:40PM +0200, Marc Mutz wrote:
> Hi,
>
> We have two functions to get a substring without doing some calculations
> involving size():
>
> - mid(p): mid(p, size() - p)
> - right(n) : mid(size() - n, n)
>
> (left does not involve size(), so isn't in that set). What is missing is a
> name for
>
> - f(n): mid(0, size() - n)
>
> As a mutator, it's called chop(n). So... chopped()?
Sounds sensible.
Andre'
More information about the Development
mailing list