Satisfied Interfaces: Callable<Type,Arguments>, FunctionModel<Type,Arguments>, Generic, Model

A function model represents the model of a Ceylon function that you can invoke and inspect.

A function is a toplevel binding, declared on a package.

This is a FunctionModel that you can also invoke:

    shared String foo(String name) => "Hello "+name;

    void test(){
        Function<String,[String]> f = `foo`;
        // This will print: Hello Stef
        print(f("Stef"));
    }

Inherited Attributes
Attributes inherited from: Object hash, string
Attributes inherited from: FunctionModel<Type,Arguments> parameterTypes, type
Attributes inherited from: Generic typeArguments
Attributes inherited from: Model container, declaration

Methods
apply | Source Code shared formal Type apply(Anything[] arguments) Type-unsafe function application, to be used when the argument types are unknown until runtime. This has the same behaviour as invoking this `Function` directly, but exchanges compile-time type safety with runtime checks. Throws: IncompatibleTypeException If any argument is not assignable to this function's corresponding parameter InvocationException If there are not enough or too many provided arguments

Inherited Methods
Methods inherited from: Object equals