Hi Petr,

Here, `f` is a singleton type.  For this function, you could call myfunction
with

myfunction(Int, 2, 3)

and the value of `f` would be the type `Int` (with type Type{Int}).

There is a brief section in the manual (
http://docs.julialang.org/en/latest/manual/types/#singleton-types), but it
doesn't seem to be discussed in the Parametric Functions section, although
it is discussed more under Coversions (
http://docs.julialang.org/en/latest/manual/conversion-and-promotion/#conversion
).

Cheers,
    Kevin

On Wed, Jan 7, 2015 at 3:30 PM, Petr Krysl <[email protected]> wrote:

> What does this mean  please?
>
> function myfunction{f}(::Type{f}, args...)
>     # Do stuff using f just like an ordinary functionend
>
> I'm sorry  to have to ask this, it would be  much better  to just go to the
> manual, but the manual search does not yield anything for "Type{".
>
> Thanks a lot,
>
> Petr
>
>
>

Reply via email to