Hi all,

I just spent 20 minutes trying to figure out why this is not working:

A =[1,2,3]
repeat(A,2,1)

After looking at help(repeat), I (slightly) improved my attempt to

repeat(A,[2,2,2],[1,1,1])

but still no luck. Now this may be completely my shortcoming of a proper 
understanding of the Julia language (I reckon at some point in the manual 
the user is reminded that "if a function is defined with keywords, you 
actually have to provide them"), but a simple one-line example in 
help(repeat) of the kind

repeat(A,inner=[2,2,2],outer=[1,1,1])

would have sorted me out in 2 seconds. I would encourage to have an example 
in every help(), wherever possible. It could just be (part of) the unit 
test. Coming from R, the examples in the help files are extremely helpful.



Reply via email to