Yes, operators are difficult to search for. There should be a table of
them...

The two dots .. are not an operator; they specify an access path to a
module. See <http://docs.julialang.org/en/release-0.3/manual/modules/>

The arrow -> defines an anonymous function. See <
http://docs.julialang.org/en/release-0.3/manual/functions/>. Here, this
function accesses the second element of an array (or tuple or other
collection).

-erik

On Wed, Sep 23, 2015 at 7:47 PM, Alex Copeland <accopel...@lbl.gov> wrote:

> Update from OP: Not sure it matters, but on the off chance the syntax is
> new,  I'm running
>
> julia> versioninfo()
> Julia Version 0.5.0-dev+318
> Commit 3b189b9* (2015-09-22 15:28 UTC)
> Platform Info:
>   System: Darwin (x86_64-apple-darwin12.4.0)
>   CPU: Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz
>   WORD_SIZE: 64
>   BLAS: libopenblas (DYNAMIC_ARCH NO_AFFINITY Sandybridge)
>   LAPACK: libopenblas
>   LIBM: libopenlibm
>   LLVM: libLLVM-3.3
>
>
>
> On Wednesday, September 23, 2015 at 3:32:57 PM UTC-7, Alex Copeland wrote:
>>
>>
>>
>> Hi,
>>
>> Can someone point me to the documentation for '..'  and '->'  as in
>>  'include ..Sort'  and x -> x[2] . I've dug around in the source and in
>> readthedocs but patterns like this are the devil to search for unless they
>> have a text alias (that you happen to know).
>>
>> Thanks,
>> Alex
>>
>


-- 
Erik Schnetter <schnet...@gmail.com>
http://www.perimeterinstitute.ca/personal/eschnetter/

Reply via email to