Max Alekseyev on Sun, 16 Sep 2018 00:12:01 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: concat: domain error in concat: vector = []


Hi Bill,
I'd expect f(0) = g(0) = []. What's the catch here?
Regards,
Max

On Sat, Sep 15, 2018 at 6:04 PM, Bill Allombert <Bill.Allombert@math.u-bordeaux.fr> wrote:
On Sat, Sep 15, 2018 at 05:55:52PM -0400, Max Alekseyev wrote:
> Hello,
>
> Since concat(x) accepts x being a list/vector of objects to be
> concatenated, it is expected that concat([]) returns [].

Why ? Consider
f(n)=concat(vector(n,i,Str(i)))
g(n)=concat(vector(n,i,[i]~))

Given f(1),f(2),..., g(1),g(2),...  what do you 'expect' f(0) and g(0)
to be ?

Cheers,
Bill