Bill Allombert on Sun, 16 Sep 2018 00:04:39 +0200


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

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


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