making a list of ones



On Sat, Oct 24, 2009 at 09:57:18PM -0400, thus spake Joshua Stults:
> Maxima Listers,
> 
> I'd like to be able to make a list of a certain length, say n, with
> each element the same, say 1. In matlab you'd do something like:
> 
>   x = ones(n,1);
> 

You mean somethehing like 

(%i1) makelist(1, i, 1, 6);
(%o1)                         [1, 1, 1, 1, 1, 1]

HTH,
Nikos