From 1cd83eccbc9021aa6149f9074827e1ccde549c9a Mon Sep 17 00:00:00 2001 From: Gavin Schulz Date: Sat, 4 Apr 2015 15:29:10 -0700 Subject: [PATCH] Add docs for fn.call. --- doc/site/core/fn.markdown | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/doc/site/core/fn.markdown b/doc/site/core/fn.markdown index 6677be39..0549a64c 100644 --- a/doc/site/core/fn.markdown +++ b/doc/site/core/fn.markdown @@ -30,4 +30,13 @@ The number of arguments the function requires. ### **call**(args...) -**TODO** +Invokes the function with the given arguments. + + :::dart + var fn = new Fn { |arg| + IO.print(arg) + } + fn.call("Hello world") // Hello world. + +It is a runtime error if the number of arguments given does not equal the arity +of the function. \ No newline at end of file