Sure enough, that is undocumented. I think I was unaware of it when I wrote
that section of the manual and it never got added. Please do open an issue
so we remember to document it at some point. Or better still, make a PR
that documents it :-)


On Mon, Jun 30, 2014 at 9:35 AM, Matt Bauman <[email protected]> wrote:

> Nope, Brian is talking about the other anonymous function syntax.  I was
> surprised when I ran across it myself, and think it is indeed undocumented.
>  Perhaps open an issue?
>
> julia> f = function(x) println(x); end
> (anonymous function)
>
> julia> f("foo")
> foo
>
>
> On Monday, June 30, 2014 3:03:11 AM UTC-4, Tomas Lycken wrote:
>>
>> This <http://docs.julialang.org/en/latest/manual/functions/#functions>
>> doesn’t cut it for you? =)
>>
>> // T
>>
>> On Monday, June 30, 2014 7:26:15 AM UTC+2, Brian Nguyen wrote:
>>
>> The Julia Manual seems to not mention (or use) the following syntax:
>>> > function([arguments]) [body] end
>>>
>> ​
>>
>

Reply via email to