We definitely need more examples in help. This is very tedious to add but 
fortunately highly parellelizable – if you encounter a function that confuses 
you and needs an example, you can easily add one via a pull request.

> On May 24, 2014, at 7:33 AM, Florian Oswald <[email protected]> wrote:
> 
> 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