The reason you got an Array{Array} is because basis.(n,x) creates an Array, and you put it inside an array comprehension. What you want is
x = rand(10)
n=(1:5)'
basis.(n,x)
The reason you got an Array{Array} is because basis.(n,x) creates an Array, and you put it inside an array comprehension. What you want is
x = rand(10)
n=(1:5)'
basis.(n,x)