making a list of ones



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);

The two things I've come up with so far are pretty awkward, converting an array:

  foo : listarray(fillarray(make_array(any, n), [1]));

or using a loop:

  foo : [];
  for i : 1 thru n do foo : append(foo, [1]) $

Is there a way to do this more directly? Am I missing something
obvious in the docs?  I'd appreciate any suggestions on something more
succinct.  Thanks for your time and consideration.

-- 
Joshua Stults
Website: http://j-stults.blogspot.com